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
onkeypress
onkeydown
onkeyup
All of the above
innerHTML
outerHTML
textContent
value
onmove
onscroll
onchange
onresize
Display()
Prompt()
Alert()
Confirm()
onsize
onzoom
onexpand
keyword
function
Declaration Statement
Data type
variable carName;
var carName;
vari carName;
dim carName;
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
onsubmit
oninput
onreset
Automatic synchronization of data between model and view components
Automatic synchronization of data between model and controller components
Technique to save HTML data in the database
Technique to bind database data to HTML control
{{ }}
[[ ]]
(( ))
<< >>
oncontextmenu
onmousedown
onrightclick
onselect
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
element.innerHTML
element.value
element.content
element.innerText
classList.add()
classList.remove()
classList.toggle()
classList.replace()
var defines a variable while let defines a constant.
There is no such major difference between them
The value of variable declared with let cannot be changed
var define function scoped variable while let define block scoped variable
5myvalue
myvalue5
Myvalue
None of These
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
Multiple <script> tags can be used in the same HTML document
The <script> tag can only be placed in the <head> section
The <script> tag can only be used once in an HTML document
The <script> tag must always reference an external file
ng-model
ng-repeat
ng-bind
ng-if
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
What is the output?
console.log(2+"2"*2);
44
12
6
Error
The with value let cannot of a variable declared with var can be changed while the value of a variable declared be changed
var defines a variable while let defines a constant
var declare function scoped variable while let declare block scoped variable
All of the options
shift()
pop()
remove()
delete()
onclick
onmouseover
onmousehover
onmouseclick
onkeyrelease
integers
double precision floating point
double
floating point
upload
load
onmouseout
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
What will be the output?
console.log(true + true);
0
1
2
What will the following JavaScript code do?
var element = document.getElementById("myDiv");element.remove();
Remove the element with the ID "myDiv" from the DOM
Remove all child elements inside the element with the ID "myDiv"
Hide the element with the ID "myDiv"
Move the element with the ID "myDiv" to a different location
Syntax error
Accessing a variable or function that is not defined
Division by zero
None of these
removeElement()
removeNode()
removeChild()
deleteNode()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
onprogress
onload
onerror
oncomplete
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.
::
?:
??
=>
<div ng-app="" ng-init="x=10">{{x*2}}</div>
10
20
100
Boolean
String
Function
document. write()
console.log()
document.getElementById()
ng-start
ng-controller
ng-app
ng-init
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
==
=
===
!=
What will be the output of the following JS code snippet?
var a = true + true + true * 3; print(a)
3
error
5
var
let
const
none of the above
2value
first-name
_totalAmount
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");