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 moreIs JavaScript case sensitive example?
JavaScript is a case-sensitive language . This means that language keywords, variables, function names, and any other identifiers must always be typed with a consistent capitalization of letters. The while keyword, for example, must be typed “while”, not “While” or “WHILE”.
Read more