Tag: javascript

Questions Related to javascript

  1. response.write("Hello World")

  2. document.write("Hello World")

  3. ("Hello World")

  4. echo("Hello World")


Correct Option: B
  1. call function myFunction

  2. myFunction()

  3. call myFunction()


Correct Option: B
  1. Two. The "for" loop and the "while" loop

  2. Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop

  3. One. The "for" loop


Correct Option: A
  1. for (i = 0; i <= 5)

  2. for (i = 0; i <= 5; i++)

  3. for i = 1 to 5

  4. for (i <= 5; i++)


Correct Option: B
  1. var txt = new Array(1:"tim",2:"shaq",3:"kobe")

  2. var txt = new Array="tim","shaq","kobe"

  3. var txt = new Array("tim","shaq","kobe")


Correct Option: C
  1. Math.rnd(8.25)

  2. Math.round(8.25)

  3. round(8.25)

  4. rnd(8.25)


Correct Option: B
  1. Math.max(6,8)

  2. top(6,8)

  3. ceil(6,8)

  4. Math.ceil(6,8)


Correct Option: A