onclickmouse
onmouseover
onmouseout
onmouseup
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
element.innerHTML
element.value
element.content
element.innerText
Boolean
String
Number
Function
What is the output?
console.log(2+"2"*2);
44
12
6
Error
onkeypress
onkeydown
onkeyup
onkeyrelease
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
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
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
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
onsize
onresize
onzoom
onexpand
integers
double precision floating point
double
floating point
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
To add interactivity to HTML Pages
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.
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
<script href="script.js"></script>
Microsoft
Google
Oracle
IBM
{{ }}
[[ ]]
(( ))
<< >>
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
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
shift()
pop()
remove()
delete()
Server-side Framework
JavaScript Framework
Database System
CSS Framework
onprogress
onload
onerror
oncomplete
onblur
onfocus
onclick
onsubmit
push()
unshift()
innerHTML
innerText
textContent
All of the above
element.getValue()
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
if(a!=null)
if (!a)
if(a!null)
if(a!==null)
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
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
Division by zero
Missing of semicolons
Syntax error
Both A and B
<javascript>
<script>
<scripting>
<link>
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
22
4
2
syntax error
MVC
FTP
TCP/IP
Client-Server Only
document. write()
console.log()
window. alert()
onchange
oninput
onedit
onupdate
hasChildNodes()
childNodes
children
hasChildren()
ng-model
ng-repeat
ng-bind
ng-app
onmouseenter
onmove
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
'This is a comment
#This is a comment
.html
.java
.js
.css
variable carName;
var carName;
vari carName;
dim carName;