Simple JavaScipt Quiz

Test your basic knowledge in javascipt

1. In which HTML element do we put javascript code?

a. <js>
b. <script>
c. <body>
d. <link>

2. Which HTML attribute is used to reference an external Javascipt file?

a. src
b. rel
c. type
d. href

3. How would you write "Hello" in alert box?

a. msg("Hello")
b. alertBox("Hello")
c. document.Write("Hello")
d. alert("Hello")

4. Javascript is directly related to "Java" programming languahe.

a. True
b. False

5. A variable is javascript must start with which special character?

a. @
b. $
c. #
d. No Speacial Character