Simple Javascript Quiz

Test your knowledge in Javascript Fundamentals

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

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

2.Which element attribute is used to refernce to external Javascript file?

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

3.How would you write "hello" in an alert box?

a.msg("hello")
b.alertbox("hello")
c.documnent.write("hello")
d.alert("hello")

4.Javascript is directly related to Java programming language?

a.true
b.false

5.A variable in javascript must start with a special character?

a.@
b./
c.#
d.No special character