Case Sensitivity
Variables and function names are case-sensitive. And, remember that native javascript function and CSS properties in javascript are camelCase.
Example:
javascript
// it should be 'Id' not 'ID' getElementById( 'w3wiki' ) != getElementByID( 'w3wiki' ); // 'w3wiki' again does not equal 'w3wiki' getElementById( 'w3wiki' ) != getElementById( 'w3wiki' ); |
JavaScript Common Mistakes
JavaScript is an easy language to get started with, but achieving mastery takes a lot of effort, time, and patience. Beginners often make a few well-known mistakes.
In this article, we’ll cover some of the most common learning mistakes people make and find out how to overcome them. Many of these tips will be applicable outside of JavaScript or even web development.
Contact Us