<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
It is the synchronization between the model and the view
ng-model directive is used to bind data from the model to the view on HTML controls
double brackets (( )) can be used to display content from the model
ng-bind directive is used to bind the inner HTML of the element to the specified model Property
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
The with value let cannot of a variable declared with var can be changed while the value of a variable declared be changed
var defines a variable while let defines a constant
var declare function scoped variable while let declare block scoped variable
All of the options
onload
DOMContentLoaded
onstart
oninit
<script href="xxx.js">
<script src="xxx.js">
<script name="xxx.js">
<script id="xxx.js">
insertBefore()
insertPrevious()
appendBefore()
addBefore()
<js>
<code>
<scripting>
<script>
event target
event type
both event type and event target
interface
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
<script href="script.js"></script>
var
let
const
none of the above
onkeypress
onkeydown
onkeyup
onkeyrelease
Microsoft
Google
Oracle
IBM
Sun Microsystems
Netscape
onchange
onsubmit
oninput
onreset
Boolean
String
Number
Function
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
what will be the output of
document.write("5" + 5)
5
10
55
error
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
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
Division by zero
Missing of semicolons
Syntax error
Both A and B
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.
CSS
Python
HTML
JavaScript
ng-if
ng-show-only
ng-hide-if
ng-condition
What will be the output of the following JavaScript snippet?
console.log("5" + 3);
53
8
2
Error
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
.html
.java
.js
.css
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
<javascript>
<link>
removeElement()
removeNode()
removeChild()
deleteNode()
shift()
pop()
remove()
delete()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
innerHTML
outerHTML
textContent
value
onmove
onscroll
onresize
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
static
public
replaceNode()
replaceElement()
replaceChild()
replaceWith()
React
Angular
Vue.js
Django
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
All of the above
Null type
Undefined type
Number type
All of the mentioned
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
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
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
==
=
===
!=
What is the output?
<div ng-app="" ng-init="x=10">{{x*2}}</div>
20
100
element.innerHTML
element.value
element.content
element.innerText
integers
double precision floating point
double
floating point
push()
unshift()
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");