In JavaScript, the while keyword, should be “while”, not “While” or “WHILE”. Case sensitivity is important since it is closely related to HTML , but some methods and events are mentioned differently. Some tags and attributes in HTML have the same name as JavaScript objects and properties.
Read moreAre scripts case sensitive?
A script is in plain text and not simply markup like hypertext markup language, that is case insensitive . In JavaScript, the whereas keyword ought to be “while”, not “While” or “WHILE”.
Read moreHow do I make JavaScript not case sensitive?
The most basic way to do case insensitive string comparison in JavaScript is using either the toLowerCase() or toUpperCase() method to make sure both strings are either all lowercase or all uppercase .
Read more