Is Javascript case sensitive?

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


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


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.


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.