JavaScript For Developers Quiz Questions and Answers

…... Tag is an extension to HTML that can enclose any number of Javascript statements.

Answer :
  • < SCRIPT >

How does JavaScript store dates in date object?

Answer :
  • The number of milliseconds since January 1st, 1970

What is the correct Javascript syntax to write "Hello World "?

Answer :
  • document.write( "Hello World ")

Which of the following way can be used to indicate the LANGUAGE attribute?

Answer :
  • < SCRIPT LANGUAGE= "JavaScriptVersion " > JavaScript statements..< /SCRIPT >

Inside which HTML element do we put the JavaScript?

Answer :
  • < script >

Which is the correct way to write a JavaScript array?

Answer :
  • var txt = new Array( "time ",'kim ",'jim ")

JavaScript entities start with _______ and end with _________.

Answer :
  •  Ampersand, semicolon

What is the correct syntax for referring to an external script called " abc.js "?

Answer :
  •  < script src= " abc.js " >

Inside which HTML element do we put the JavaScript?

Answer :
  •  < script >

Which of the following way can be used to indicate the LANGUAGE attribute?

Answer :
  •  < SCRIPT LANGUAGE= "JavaScriptVersion " >    JavaScript statements…< /SCRIPT >