alert("Hello World")
alertBox("Hello World")
msgBox("Hello World")
msg("Hello World")
<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
onclick
onmousescroller
onmouseover
onmousemove
parseInt ()
Number()
parseFloat()
valueOf()
Boolean
String
Number
Function
=
==
===
!=
element.getValue()
element.innerHTML
element.value
element.innerText
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
.html
.java
.js
.css
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
Null type
Undefined type
Number type
All of the mentioned
document. write()
console.log()
innerHTML
document.getElementById()
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
To add interactivity to HTML Pages
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
oninput
onchange
onedit
onupdate
shift()
pop()
remove()
delete()
window. alert()
upload
load
onmouseout
onerror
onexception
onwarning
onfail
Division by zero
Missing of semicolons
Syntax error
Both A and B
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
React
Angular
Vue.js
Django
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
variable carName;
var carName;
vari carName;
dim carName;
onhover
Client Side
Server Side
None of These
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
classList.add()
classList.remove()
classList.toggle()
classList.replace()
ondblclick
onmouseclick
onhoverclick
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
innerText
textContent
All of the above
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
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
<!--This is a comment-->
//This is a comment
'This is a comment
#This is a comment
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
5myvalue
myvalue5
Myvalue
element.content
onmouseenter
onmove
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
insertBefore()
insertAfter()
appendChild()
prependChild()
Microsoft
Sun Microsystems
Netscape
Oracle
/* This is a comment */
Both A and C
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
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
22
4
2
syntax error
removeElement()
removeNode()
removeChild()
deleteNode()
var
let
const
none of the above