hyf-javascript2's Introduction
hyf-javascript2's People
hyf-javascript2's Issues
Keys are in double-quotes!
The keys in the function are in double quotes and due to this, the function 'bookTit()' is never able to retrieve any data.
Lines 56 to 160 in 0dd82a9
Script tag incorrect, so script is never attached!
The 'src' attribute is present outside the tag definition.
hyf-javascript2/Week 1/index.html
Line 12 in 0dd82a9
Two functions with the same name!
You have made two functions with the exact same name 'bookTit()'. Due to this, the second function is called when you try to call the first function. Also, the second function never runs because the object 'bookDet' is defined after the function is being called for the first time.
Lines 31 to 49 in 0dd82a9
Correct key not being used to retrieve data!
In this function, you are not using the correct keys ('title', 'language' and 'author'). Capitalising the first letter of the key changes the key because JavaScript is case-sensitive. Hence, when you try to retrieve the title of the book on line 184 using boTi.innerHTML = bookDet[bookId].Title;
it would not work. The correct way to write this would be boTi.innerHTML = bookDet[bookId].title;
Lines 166 to 200 in 0dd82a9
No book cover images added!
You have not added any book cover images to your homework.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.