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
=
x
==
*
onkeypress
onkeydown
onkeyup
All of the above
onclick
onmouseover
onmousehover
onmouseclick
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
oninput
onchange
onedit
onupdate
variable carName;
var carName;
vari carName;
dim carName;
<javascript>
<script>
<scripting>
<link>
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
22
4
2
syntax error
Microsoft
Sun Microsystems
Netscape
Oracle
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
ondblclick
onhoverclick
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
document. write()
console.log()
window. alert()
innerHTML
shift()
pop()
remove()
delete()
insertBefore()
insertAfter()
appendChild()
prependChild()
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
integers
double precision floating point
double
floating point
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
.html
.java
.js
.css
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
onmove
onscroll
onresize
classList.add()
classList.remove()
classList.toggle()
classList.replace()
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
Boolean
String
Number
Function
outerHTML
textContent
value
alert("Hello World")
alertBox("Hello World")
msgBox("Hello World")
msg("Hello World")
onclickmouse
onmouseout
onmouseup
element.innerHTML
element.value
element.content
element.innerText
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.
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
onsize
onzoom
onexpand
Prints an exception error
Prints an overflow error
Displays “Infinity”
Prints the value as such
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
push()
unshift()
onsubmit
onreset
<script href="script.js"></script>
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
upload
load
CSS
Python
HTML
JavaScript
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
onkeyrelease
onerror
onexception
onwarning
onfail
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
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()