<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
<script href="script.js"></script>
keyword
function
Declaration Statement
Data type
onkeypress
onkeydown
onkeyup
All of the above
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
what will be the output of
document.write("5" + 5)
5
10
55
error
onload
DOMContentLoaded
onstart
oninit
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
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
variable carName;
var carName;
vari carName;
dim carName;
Prints an exception error
Prints an overflow error
Displays “Infinity”
Prints the value as such
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
var
let
const
none of the above
<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
Microsoft
Sun Microsystems
Netscape
Oracle
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
onclickmouse
onmouseover
onmouseout
onmouseup
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
replaceNode()
replaceElement()
replaceChild()
replaceWith()
hasChildNodes()
childNodes
children
hasChildren()
element.innerHTML
element.value
element.content
element.innerText
oninput
onchange
onedit
onupdate
onsize
onresize
onzoom
onexpand
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
onmouseenter
onmove
integers
double precision floating point
double
floating point
onsubmit
onreset
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
React
Angular
Vue.js
Django
onprogress
onerror
oncomplete
insertBefore()
insertAfter()
appendChild()
prependChild()
onclick
onhover
Boolean
String
Number
Function
ondblclick
onmouseclick
onhoverclick
document. write()
console.log()
innerHTML
document.getElementById()
Client Side
Server Side
Both A and B
None of These
insertPrevious()
appendBefore()
addBefore()
upload
load
outerHTML
textContent
value
oncontextmenu
onmousedown
onrightclick
onselect
5myvalue
myvalue5
Myvalue
Division by zero
Missing of semicolons
Syntax error
innerText