Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Case Sensitivity</title> </head> <body> <script> let myVar = "Hello World!"; console.log(myVar); console.log(MyVar); console.log(myvar); </script> <p><strong>Note:</strong> Check out the browser console by pressing the f12 key on the keyboard, you'll see a line something like this: "Uncaught ReferenceError: MyVar is not defined".</p> </body> </html>