element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
onkeypress
onkeydown
onkeyup
onkeyrelease
React
Angular
Vue.js
Django
All of the above
parseInt ()
Number()
parseFloat()
valueOf()
<script href="script.js"></script>
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
removeElement()
removeNode()
removeChild()
deleteNode()
insertBefore()
insertAfter()
appendChild()
prependChild()
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
innerHTML
innerText
textContent
upload
load
onmouseout
onmouseover
ondblclick
onclick
onmouseclick
onhoverclick
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
CSS
Python
HTML
JavaScript
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
Syntax error
Accessing a variable or function that is not defined
Division by zero
None of these
=
x
==
*
onprogress
onload
onerror
oncomplete
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
shift()
pop()
remove()
delete()
onchange
onhover
Client Side
Server Side
Both A and B
None of These
var defines a variable while let defines a constant.
There is no such major difference between them.
The value of a variable declared with var can be changed while the value of a variable declared with let cannot be changed.
var defined function scoped variable while let define block scoped variable.
integers
double precision floating point
double
floating point
what will be the output of
document.write("5" + 5)
5
10
55
error
JavaScript must always be placed inside the <head> tag
JavaScript can be placed either in the <head> or <body> tag
JavaScript can only be placed in external files
JavaScript cannot be placed in the <head> tag
push()
unshift()
It checks if a value is a number
It checks if a value is not a number
It converts a value to a number
It checks if a value is undefined
oninput
onsize
onresize
onzoom
onexpand
Microsoft
Sun Microsystems
Netscape
Oracle
classList.add()
classList.remove()
classList.toggle()
classList.replace()
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
'This is a comment
#This is a comment
Missing of semicolons
outerHTML
value
===
!=
5myvalue
myvalue5
Myvalue
22
4
2
syntax error
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
onmove
onscroll
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
Display()
Prompt()
Alert()
Confirm()