I'm a beginner javascript dev, I wrote this code:
var foo = "sunny";
var longitudInt = foo.length;
console.log("The length of " + foo + " is " + longitudInt);
But when I wrote foo.length, I made a spelling mistake and wrote foo.lenght, but it didn't show an error in the console, Why? It doesn't show an error