There are 3 ways to create objects.
By object literal
By creating an instance of Object directly (using the new keyword)
By using an object constructor (using the new keyword)
The syntax of creating object using object literal is given below:
As you can see, property and value is separated by : (colon).
document.write(emp.id+" "+emp.name+" "+emp.salary);
The output of the above example,
420 Slightbook 40000000
When isNaN() function returns true?