removeElement()
removeNode()
removeChild()
deleteNode()
onkeypress
onkeydown
onkeyup
onkeyrelease
document. write()
console.log()
window. alert()
innerHTML
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
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
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
=
==
===
!=
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
To add interactivity to HTML Pages
onload
DOMContentLoaded
onstart
oninit
variable carName;
var carName;
vari carName;
dim carName;
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
22
4
2
syntax error
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
Prints an exception error
Prints an overflow error
Displays “Infinity”
Prints the value as such
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
shift()
pop()
remove()
delete()
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
what will be the output of
document.write("5" + 5)
5
10
55
error
innerText
textContent
All of the above
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
<!--This is a comment-->
//This is a comment
'This is a comment
#This is a comment
Division by zero
Missing of semicolons
Syntax error
Both A and B
React
Angular
Vue.js
Django
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
Accessing a variable or function that is not defined
None of these
insertBefore()
insertAfter()
appendChild()
prependChild()
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
onmove
onscroll
onchange
onresize
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
<javascript>
<script>
<scripting>
<link>
onmouseover
onclick
onhover
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To Style HTML Pages
5myvalue
myvalue5
Myvalue
None of These
<script href="script.js"></script>
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
onprogress
onerror
oncomplete
onsubmit
oninput
onreset
Microsoft
Sun Microsystems
Netscape
Oracle
parseInt ()
Number()
parseFloat()
valueOf()
oncontextmenu
onmousedown
onrightclick
onselect
CSS
Python
HTML
JavaScript
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
element.innerHTML
element.value
element.content
element.innerText
JavaScript interpreter processes programs written in Java.
JavaScript interpreter processes commands in a script written in JavaScript.
Java and JavaScript are almost similar
JavaScript cannot be embedded in HTML.
var
let
const
none of the above
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()
onedit
onupdate
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
document.getElementById()