alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
onclick
onmousescroller
onmouseover
onmousemove
Syntax error
Accessing a variable or function that is not defined
Division by zero
None of these
push()
pop()
shift()
unshift()
document. write()
console.log()
window. alert()
innerHTML
ng-model
ng-repeat
ng-bind
ng-app
parseInt ()
Number()
parseFloat()
valueOf()
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
ng-if
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
.html
.java
.js
.css
What is the output?
<div ng-app="" ng-init="x=10">{{x*2}}</div>
10
20
100
Error
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
<script href="script.js"></script>
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
onblur fires when an element loses focus, and onfocus fires when an element gains focus
Both events fire when the window is minimized
Both events trigger when the page is loaded
onblur fires when an element is clicked, and onfocus fires when the mouse moves over an element
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
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
{{ }}
[[ ]]
(( ))
<< >>
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
/
%
*
^
integers
double precision floating point
double
floating point
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
console.log("5" + 2);
7
52
Undefined
onsize
onresize
onzoom
onexpand
element.innerHTML
element.value
element.content
element.innerText
onmove
onscroll
onchange
MVC
FTP
TCP/IP
Client-Server Only
Null type
Undefined type
Number type
All of the mentioned
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
document.getElementById()
It is triggered when an element is clicked
It is triggered when an element gains focus
It is triggered when an element is hovered
It is triggered when the window is resized
hasChildNodes()
childNodes
children
hasChildren()
insertBefore()
insertAfter()
appendChild()
prependChild()
Microsoft
Google
Oracle
IBM
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
var
let
const
none of the above
onsubmit
oninput
onreset
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.
classList.add()
classList.remove()
classList.toggle()
classList.replace()
onedit
onupdate
console.log(2+"2"*2);
44
12
6
onhover
::
?:
??
=>
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
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()