Q What if I use var inside Contstructor function? function Person(firstName, lastName, age){this.firstName=firstName;this.lastName = lastName; var a = 5;}; What will console.log(a); print?
Anonym
It will give compile time error, as you are using a variable outside of its scope.