Is Javascript case sensitive?

I wrote Console.log(24);
got error then wrote console.log(24); then got output .
means javascript is case sensitive.

6 Likes

yes you’re right JS is case sensitive which means TIME and Time are two different things for JS to handle

13 Likes

JS is case sensitive in all and any cases. let myAge, let myage and let MYAGE are all different variables and the function you are trying to call is console.log() and not Console.log, which will cause an error.

7 Likes

Why can’t we put letters inside the ()? When I put ‘console.log(hi);’, it gave me an error.

because hi is now an undefined variable, so either: defined the variable or make hi a string.

1 Like

Programming is about problem solving, in on purpose left out the bit how to make it a string.