Soal Latihan

Simple Javascript Quiz

Simple Javascript Quiz

Test you knowledge in Javascript Fundamentals

Questions 1. In which HTML element do we put in JS code?

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

Questions 2. Which HTML attibute is used to reference an external JS file?

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

Questions 3. How would you wtite "Hello" in an alert box?

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

Questions 4. Javascript is directly related to Java?

a. True
b. False

Questions 5. A variable in JS must start with which special character?

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