Is JavaScript case sensitive language?

Forums JavaScriptIs JavaScript case sensitive language?
Staff asked 3 weeks ago

Answers (1)

Add Answer
Nayan Raval Marked As Accepted
Staff answered 3 weeks ago

Yes, JavaScript is a case-sensitive language.

For example:

Var msg = "JavaScript is a case-sensitive language"; //Here, var should be used to declare a variable  
function display()   
{  
document.writeln(msg); // It will not display the result.  
}   
display();

 

 

Subscribe

Select Categories