Calling a function that is inside a class

 All the instances/objects of a class can call the methods/ functions that is inside a class. Below are few examples:






This is an example of creating new properties in a class outside the braces of the class and also number + undefined => NaN (Not a Number)











Comments

Popular posts from this blog

car.js

movie.js