3:I[39275,[],""]
5:I[61343,[],""]
6:I[23053,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"StateProvider"]
7:I[19593,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],""]
8:I[18709,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","9160","static/chunks/app/not-found-5850ce7843ba4d5a.js"],"default"]
9:I[45723,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"default"]
4:["all","javascript-interview-questions-answers","c"]
0:["79z6y6ppLce0GndJRjYzJ",[[["",{"children":[["all","javascript-interview-questions-answers","c"],{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":[["all","javascript-interview-questions-answers","c"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/402d889fee29bde2.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0ff6cecb1d0e96f8.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/a246b44e33111fd9.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","4",{"rel":"stylesheet","href":"/_next/static/css/9d9d0f6a85930e46.css","precedence":"next","crossOrigin":"$undefined"}]]}],null]},[["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L6",null,{"children":[["$","$L7",null,{}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","$L8",null,{}],"notFoundStyles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}]],"styles":null}],["$","$L9",null,{}]]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0cc2495744a38244.css","precedence":"next","crossOrigin":"$undefined"}]],"$La"]]]]
b:I[67379,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","6051","static/chunks/795d4814-d7614a20709c27af.js","614","static/chunks/3d47b92a-f2bb54912083012c.js","9212","static/chunks/59650de3-13cfd2620b7240d2.js","522","static/chunks/94730671-a8ad9eca65504500.js","7675","static/chunks/b563f954-501d993050fd0717.js","1994","static/chunks/e34aaff9-cd556a7ee1a90c03.js","6990","static/chunks/13b76428-5a68792917164904.js","5957","static/chunks/30a37ab2-a5fc2d8864b3152b.js","6844","static/chunks/f25cdb8d-30c837856fb6d42d.js","7259","static/chunks/479ba886-8536ff4966e1aaf8.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","4349","static/chunks/4349-c8f0646a83cc4179.js","4791","static/chunks/4791-6c93b9aca8a9f315.js","5225","static/chunks/5225-dc21c87d99338f19.js","9293","static/chunks/9293-d1b040d0324d0d5a.js","5919","static/chunks/5919-545104f05818203e.js","1413","static/chunks/1413-986ad1f4cd2d661e.js","2499","static/chunks/2499-61bd3b514e9c4cb8.js","4175","static/chunks/4175-fb05509a4e1790ec.js","5653","static/chunks/app/%5B...all%5D/page-f1bbbeae9a681a62.js"],"default"]
c:T5575,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">JavaScript Interview Questions And Answers</span></h2>
<div style="border-radius: 3px; background-color: #eaecf1; padding: 0 0 10px 0; margin-bottom: 20px;">
<p><span style="font-size: 13pt; color: #ffffff; padding: 10px 20px; font-weight: 600; text-align: center; border-radius: 3px; display: block; background-color: #008e81;">&nbsp;Categories of JavaScript Interview Questions</span></p>
<ul>
<li style="text-align: justify;"><span style="font-size: 12pt;"><strong><span style="font-family: georgia, palatino, serif;"><strong style="color: #000000;"><a href="#scenario"> JavaScript Certification Questions and Answers</a></strong>&nbsp;</span></strong></span></li>
<li style="text-align: justify;"><span style="font-size: 12pt; font-family: georgia, palatino, serif;"><strong><a href="#advanced">JavaScript Interview Questions for Experienced</a></strong></span></li>
</ul>
</div>
<h3><span style="font-size: 12pt;">1Q) What is JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:</span> JavaScript</strong>&nbsp;is&nbsp;<em>a scripting language</em>. It is different from Java language. It is an object-based, lightweight, and cross-platform. It is widely used for client-side validation.</span></p>
<h3><span style="font-size: 12pt;">2Q) What is the difference between JavaScript and Jscript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Netscape provided the JavaScript language. Microsoft changed the name and called it JScript to avoid the trademark issue. In other words, you can say JScript is the same as JavaScript, but it is provided by Microsoft.</span></p>
<h3><span style="font-size: 12pt;">3Q)How to write a hello world example of JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>A simple example of JavaScript hello world is given below. You need to place it inside the body tag of HTML.</span></p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;  

document.write("JavaScript Hello World!");  

&lt;/script&gt; </code></pre>
<h3><span style="font-size: 12pt;">4Q) How to use an external JavaScript file?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>I am assuming that js file name is message.js, place the following script tag inside the head tag.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>&lt;</strong><strong>script</strong>&nbsp;type="text/javascript"&nbsp;src="message.js"<strong>&gt;&lt;/</strong><strong>script</strong><strong>&gt;</strong>&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">5Q) Is JavaScript case sensitive language?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>Yes.</span></p>
<blockquote>
<p style="text-align: justify;"><em><strong>Learn JavaScript by Tekslate - Fastest growing sector in the industry. Explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="javascript-training" target="_blank" rel="noopener">JavaScript Training</a></span>" and course is aligned with industry needs &amp; developed by industry veterans. Tekslate will turn you into JavaScript Expert.</strong></em></p>
</blockquote>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">6Q) What is BOM?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong><strong>BOM</strong>&nbsp;stands for&nbsp;<em>Browser Object Model</em>. It provides interaction with the browser. The default object of the browser is the window.</span></p>
<h3><span style="font-size: 12pt;">7Q) What is DOM? What is the use of document object?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong><strong>DOM</strong>&nbsp;stands for&nbsp;<em>Document Object Model</em>. A document object represents the HTML document. It can be used to access and change the content of HTML.</span></p>
<h3><span style="font-size: 12pt;">8Q) What is the use of window object?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The window object is automatically created by the browser that represents a window of a browser.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">It is used to display the popup dialog box such as the alert dialog box, confirm dialog box, input dialog box, etc.</span></p>
<h3><span style="font-size: 12pt;">9Q) What is the use of history objects?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The history object of the browser can be used to switch to history pages such as back and forward from the current page or another page. There are three methods of history object.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.back()</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.forward()</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.go(number): number may be positive for forward, negative for backward.</span></p>
<h3><span style="font-size: 12pt;">10Q) How to write comments in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are two types of comments in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Single Line Comment: It is represented by // (double forward slash)</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Multi-Line Comment: It is represented by a slash with asterisk symbol as /* write comment here */</span></p>
<h2 id="scenario"><span style="color: #236fa1; font-size: 16pt;">JavaScript Certification Questions and Answers</span></h2>
<h3><span style="font-size: 12pt;">11Q) How to create a function in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>To create a function in JavaScript, follow the following syntax.</span></p>
<pre class="language-javascript"><code>function function_name(){  

//function body  

}  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">12Q) What are the JavaScript data types?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are two types of data types in JavaScript:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Primitive Data Types</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Non-primitive Data Types</span></p>
<h3><span style="font-size: 12pt;">13Q) What is the difference between == and ===?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The == operator checks equality only whereas === checks equality and data type i.e. value must be of the same type.</span></p>
<h3><span style="font-size: 12pt;">14Q) How to write HTML code dynamically using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The innerHTML property is used to write the HTML code using JavaScript dynamically. Let's see a simple example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">document.getElementById('mylocation').innerHTML="&lt;h2&gt;This&nbsp;is&nbsp;heading&nbsp;using&nbsp;JavaScript&lt;/h2&gt;";&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">15Q) How to write normal text code using JavaScript dynamically?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The innerText property is used to write the simple text using JavaScript dynamically. Let's see a simple example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">document.getElementById('mylocation').innerText="This&nbsp;is&nbsp;text&nbsp;using&nbsp;JavaScript";&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">16Q) How to create objects in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>There are 3 ways to create objects in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By object literal</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By creating an instance of Object</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By Object Constructor</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see a simple code to create an object using an object literal.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">emp={id:102,name:"Rahul&nbsp;Kumar",salary:50000}&nbsp;&nbsp;&nbsp;</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="javascript-tutorials" target="_blank" rel="noopener">Check Out Java Script Tutorial</a></span></p>
<h3><span style="font-size: 12pt;">17Q) How to create an array in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are 3 ways to create an array in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By array literal</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By creating an instance of Array</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By using an Array constructor</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see a simple code to create an array using object literal.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">var&nbsp;emp=["Shyam","Vimal","Ratan"];&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">18Q) What does the isNaN() function?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The isNan() function returns true if the variable value is not a number.</span></p>
<h3><span style="font-size: 12pt;">19Q) What is the output of 10+20+"30" in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>3030 because 10+20 will be 30. If there is a numeric value before and after +, it is treated is binary + (arithmetic operator).</span></p>
<h3><span style="font-size: 12pt;">20Q) What is the output of "10"+20+30 in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>102030 because after a string all the + will be treated as a string concatenation operator (not binary +).</span></p>
<h2 id="advanced"><span style="color: #236fa1; font-size: 16pt;">JavaScript Interview Questions for Experienced</span></h2>
<h3><span style="font-size: 12pt;">21Q) Difference between Client-side JavaScript and Server-side JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong><strong>Client-side JavaScript</strong> comprises the basic language and predefined objects which are relevant to running javascript in a browser. The client-side JavaScript is embedded directly in the HTML pages. This script is interpreted by the browser at run time.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>Server-side JavaScript</strong> also resembles like client-side javascript. It has a relevant javascript which is to run in a server. The server-side JavaScript are deployed only after compilation.</span></p>
<h3><span style="font-size: 12pt;">22Q) In which location cookies are stored on the hard disk?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The storage of cookies on the hard disk depends on OS and the browser.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">The Netscape navigator on Windows uses cookies.txt file that contains all the cookies. The path is : c:Program FilesNetscapeUsersusernamecookies.txt</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">The Internet Explorer stores the cookies on a file username@website.txt. The path is: c:WindowsCookiesusername@Website.txt.</span></p>
<h3><span style="font-size: 12pt;">23Q) What is the real name of JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The original name was&nbsp;<strong>Mocha</strong>, a name chosen by Marc Andreessen, founder of Netscape. In September of 1995, the name was changed to LiveScript. In December 1995, after receiving a trademark license from Sun, the name JavaScript was adopted.</span></p>
<h3><span style="font-size: 12pt;">24Q) What is the difference between undefined value and null value?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong><strong>Undefined value:</strong> A value that is not defined and has no keyword is known as an undefined value. For example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">int number;//Here, the number has an undefined value.&nbsp;&nbsp;</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>Null value:</strong>&nbsp;A value that is explicitly specified by the keyword "null" is known as null value. For example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">String&nbsp;str=null;//Here,&nbsp;str&nbsp;has&nbsp;a&nbsp;null&nbsp;value.&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">25Q) How to set the cursor to wait in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The cursor can be set to wait in JavaScript by using the property "cursor". The following example illustrates the usage:</span></p>
<pre class="language-javascript"><code>&lt;script&gt;  

window.document.body.style.cursor = "wait";   

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">26Q) What is this?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>var&nbsp;myArray&nbsp;=&nbsp;[[[]]];&nbsp;&nbsp;</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Three-dimensional array.</span></p>
<h3><span style="font-size: 12pt;">27Q) Are Java and JavaScript the same?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>No, Java and JavaScript are the two different languages. Java is a robust, secured, and object-oriented programming language whereas JavaScript is a client-side scripting language with some limitations.</span></p>
<h3><span style="font-size: 12pt;">28Q) What is negative infinity?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Negative Infinity is a number in JavaScript which can be derived by dividing negative numbers by zero.</span></p>
<h3><span style="font-size: 12pt;">29Q) What is the difference between View state and Session state?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>"View state" is specific to a page in a session whereas "Session state" is specific to a user or browser that can be accessed across all pages in the web application.</span></p>
<h3><span style="font-size: 12pt;">30Q) What are the pop-up boxes available in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Alert Box</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Confirm Box</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Prompt Box</span></p>
<h3><span style="font-size: 12pt;">31Q) How can we detect OS of the client machine using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The&nbsp;<strong>navigator.appVersion</strong>&nbsp;string can be used to detect the operating system on the client machine.</span></p>
<h3><span style="font-size: 12pt;">32Q) How to submit a form using JavaScript by clicking a link?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see the JavaScript code to submit the form on clicking the link.</span></p>
<pre class="language-javascript"><code>&lt;form name="myform" action="index.php"&gt;  

Search: &lt;input type='text' name='query' /&gt;  

&lt;a href="javascript: submitform()"&gt;Search&lt;/a&gt;  

&lt;/form&gt;  

&lt;script type="text/javascript"&gt;  

function submitform()  

{  

  document.myform.submit();  

}  

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">33Q) Is JavaScript faster than ASP script?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">Yes, because it doesn't require a web server's support for execution.</span></p>
<h3><span style="font-size: 12pt;">34Q) How to change the background color of HTML document using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong>&nbsp; &nbsp; &nbsp;</strong></span></p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;  

document.body.bgColor="pink";  

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">35Q) How to handle exceptions in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>By the help of try/catch block, we can handle exceptions in JavaScript. JavaScript supports try, catch, finally, and throw keywords for exception handling.</span></p>
<p style="text-align: justify;"><span style="font-size: 12pt;">Our design of course tutorials and interview questions is practical and informative. At TekSlate, we offer resources to help you learn various IT courses. We avail of both written material and demo video tutorials. For in-depth knowledge and practical experience explore<a href="http://tekslate.com/mapreduce-training" target="_blank" rel="noopener">&nbsp;</a><a href="https://tekslate.com/javascript-training/" target="_blank" rel="noopener">Online&nbsp;JavaScript Training</a>.</span></p>
<hr />
<p style="text-align: justify;">&nbsp;</p>e:T5575,<p>&nbsp;</p>
<h2><span style="font-size: 14pt; color: #e67e23;">JavaScript Interview Questions And Answers</span></h2>
<div style="border-radius: 3px; background-color: #eaecf1; padding: 0 0 10px 0; margin-bottom: 20px;">
<p><span style="font-size: 13pt; color: #ffffff; padding: 10px 20px; font-weight: 600; text-align: center; border-radius: 3px; display: block; background-color: #008e81;">&nbsp;Categories of JavaScript Interview Questions</span></p>
<ul>
<li style="text-align: justify;"><span style="font-size: 12pt;"><strong><span style="font-family: georgia, palatino, serif;"><strong style="color: #000000;"><a href="#scenario"> JavaScript Certification Questions and Answers</a></strong>&nbsp;</span></strong></span></li>
<li style="text-align: justify;"><span style="font-size: 12pt; font-family: georgia, palatino, serif;"><strong><a href="#advanced">JavaScript Interview Questions for Experienced</a></strong></span></li>
</ul>
</div>
<h3><span style="font-size: 12pt;">1Q) What is JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:</span> JavaScript</strong>&nbsp;is&nbsp;<em>a scripting language</em>. It is different from Java language. It is an object-based, lightweight, and cross-platform. It is widely used for client-side validation.</span></p>
<h3><span style="font-size: 12pt;">2Q) What is the difference between JavaScript and Jscript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Netscape provided the JavaScript language. Microsoft changed the name and called it JScript to avoid the trademark issue. In other words, you can say JScript is the same as JavaScript, but it is provided by Microsoft.</span></p>
<h3><span style="font-size: 12pt;">3Q)How to write a hello world example of JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>A simple example of JavaScript hello world is given below. You need to place it inside the body tag of HTML.</span></p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;  

document.write("JavaScript Hello World!");  

&lt;/script&gt; </code></pre>
<h3><span style="font-size: 12pt;">4Q) How to use an external JavaScript file?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>I am assuming that js file name is message.js, place the following script tag inside the head tag.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>&lt;</strong><strong>script</strong>&nbsp;type="text/javascript"&nbsp;src="message.js"<strong>&gt;&lt;/</strong><strong>script</strong><strong>&gt;</strong>&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">5Q) Is JavaScript case sensitive language?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>Yes.</span></p>
<blockquote>
<p style="text-align: justify;"><em><strong>Learn JavaScript by Tekslate - Fastest growing sector in the industry. Explore Online "<span style="color: #e03e2d;"><a style="color: #e03e2d;" href="javascript-training" target="_blank" rel="noopener">JavaScript Training</a></span>" and course is aligned with industry needs &amp; developed by industry veterans. Tekslate will turn you into JavaScript Expert.</strong></em></p>
</blockquote>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">6Q) What is BOM?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong><strong>BOM</strong>&nbsp;stands for&nbsp;<em>Browser Object Model</em>. It provides interaction with the browser. The default object of the browser is the window.</span></p>
<h3><span style="font-size: 12pt;">7Q) What is DOM? What is the use of document object?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong><strong>DOM</strong>&nbsp;stands for&nbsp;<em>Document Object Model</em>. A document object represents the HTML document. It can be used to access and change the content of HTML.</span></p>
<h3><span style="font-size: 12pt;">8Q) What is the use of window object?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The window object is automatically created by the browser that represents a window of a browser.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">It is used to display the popup dialog box such as the alert dialog box, confirm dialog box, input dialog box, etc.</span></p>
<h3><span style="font-size: 12pt;">9Q) What is the use of history objects?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The history object of the browser can be used to switch to history pages such as back and forward from the current page or another page. There are three methods of history object.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.back()</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.forward()</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">history.go(number): number may be positive for forward, negative for backward.</span></p>
<h3><span style="font-size: 12pt;">10Q) How to write comments in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are two types of comments in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Single Line Comment: It is represented by // (double forward slash)</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Multi-Line Comment: It is represented by a slash with asterisk symbol as /* write comment here */</span></p>
<h2 id="scenario"><span style="color: #236fa1; font-size: 16pt;">JavaScript Certification Questions and Answers</span></h2>
<h3><span style="font-size: 12pt;">11Q) How to create a function in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>To create a function in JavaScript, follow the following syntax.</span></p>
<pre class="language-javascript"><code>function function_name(){  

//function body  

}  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">12Q) What are the JavaScript data types?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are two types of data types in JavaScript:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Primitive Data Types</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Non-primitive Data Types</span></p>
<h3><span style="font-size: 12pt;">13Q) What is the difference between == and ===?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The == operator checks equality only whereas === checks equality and data type i.e. value must be of the same type.</span></p>
<h3><span style="font-size: 12pt;">14Q) How to write HTML code dynamically using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The innerHTML property is used to write the HTML code using JavaScript dynamically. Let's see a simple example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">document.getElementById('mylocation').innerHTML="&lt;h2&gt;This&nbsp;is&nbsp;heading&nbsp;using&nbsp;JavaScript&lt;/h2&gt;";&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">15Q) How to write normal text code using JavaScript dynamically?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The innerText property is used to write the simple text using JavaScript dynamically. Let's see a simple example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">document.getElementById('mylocation').innerText="This&nbsp;is&nbsp;text&nbsp;using&nbsp;JavaScript";&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">16Q) How to create objects in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>There are 3 ways to create objects in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By object literal</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By creating an instance of Object</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By Object Constructor</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see a simple code to create an object using an object literal.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">emp={id:102,name:"Rahul&nbsp;Kumar",salary:50000}&nbsp;&nbsp;&nbsp;</span></p>
<p style="text-align: center;"><span style="font-size: 12pt;"><a style="background-color: #e94350; color: #ffffff; padding: 10px 20px;" href="javascript-tutorials" target="_blank" rel="noopener">Check Out Java Script Tutorial</a></span></p>
<h3><span style="font-size: 12pt;">17Q) How to create an array in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>There are 3 ways to create an array in JavaScript.</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By array literal</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By creating an instance of Array</span></p>
<p style="text-align: justify; padding-left: 60px;"><span style="color: #000000; font-size: 12pt;">By using an Array constructor</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see a simple code to create an array using object literal.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">var&nbsp;emp=["Shyam","Vimal","Ratan"];&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">18Q) What does the isNaN() function?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The isNan() function returns true if the variable value is not a number.</span></p>
<h3><span style="font-size: 12pt;">19Q) What is the output of 10+20+"30" in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>3030 because 10+20 will be 30. If there is a numeric value before and after +, it is treated is binary + (arithmetic operator).</span></p>
<h3><span style="font-size: 12pt;">20Q) What is the output of "10"+20+30 in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>102030 because after a string all the + will be treated as a string concatenation operator (not binary +).</span></p>
<h2 id="advanced"><span style="color: #236fa1; font-size: 16pt;">JavaScript Interview Questions for Experienced</span></h2>
<h3><span style="font-size: 12pt;">21Q) Difference between Client-side JavaScript and Server-side JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong><strong>Client-side JavaScript</strong> comprises the basic language and predefined objects which are relevant to running javascript in a browser. The client-side JavaScript is embedded directly in the HTML pages. This script is interpreted by the browser at run time.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>Server-side JavaScript</strong> also resembles like client-side javascript. It has a relevant javascript which is to run in a server. The server-side JavaScript are deployed only after compilation.</span></p>
<h3><span style="font-size: 12pt;">22Q) In which location cookies are stored on the hard disk?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The storage of cookies on the hard disk depends on OS and the browser.</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">The Netscape navigator on Windows uses cookies.txt file that contains all the cookies. The path is : c:Program FilesNetscapeUsersusernamecookies.txt</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">The Internet Explorer stores the cookies on a file username@website.txt. The path is: c:WindowsCookiesusername@Website.txt.</span></p>
<h3><span style="font-size: 12pt;">23Q) What is the real name of JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>The original name was&nbsp;<strong>Mocha</strong>, a name chosen by Marc Andreessen, founder of Netscape. In September of 1995, the name was changed to LiveScript. In December 1995, after receiving a trademark license from Sun, the name JavaScript was adopted.</span></p>
<h3><span style="font-size: 12pt;">24Q) What is the difference between undefined value and null value?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong><strong>Undefined value:</strong> A value that is not defined and has no keyword is known as an undefined value. For example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">int number;//Here, the number has an undefined value.&nbsp;&nbsp;</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;"><strong>Null value:</strong>&nbsp;A value that is explicitly specified by the keyword "null" is known as null value. For example:</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">String&nbsp;str=null;//Here,&nbsp;str&nbsp;has&nbsp;a&nbsp;null&nbsp;value.&nbsp;&nbsp;</span></p>
<h3><span style="font-size: 12pt;">25Q) How to set the cursor to wait in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The cursor can be set to wait in JavaScript by using the property "cursor". The following example illustrates the usage:</span></p>
<pre class="language-javascript"><code>&lt;script&gt;  

window.document.body.style.cursor = "wait";   

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">26Q) What is this?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>var&nbsp;myArray&nbsp;=&nbsp;[[[]]];&nbsp;&nbsp;</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Three-dimensional array.</span></p>
<h3><span style="font-size: 12pt;">27Q) Are Java and JavaScript the same?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>No, Java and JavaScript are the two different languages. Java is a robust, secured, and object-oriented programming language whereas JavaScript is a client-side scripting language with some limitations.</span></p>
<h3><span style="font-size: 12pt;">28Q) What is negative infinity?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Negative Infinity is a number in JavaScript which can be derived by dividing negative numbers by zero.</span></p>
<h3><span style="font-size: 12pt;">29Q) What is the difference between View state and Session state?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>"View state" is specific to a page in a session whereas "Session state" is specific to a user or browser that can be accessed across all pages in the web application.</span></p>
<h3><span style="font-size: 12pt;">30Q) What are the pop-up boxes available in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>Alert Box</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Confirm Box</span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Prompt Box</span></p>
<h3><span style="font-size: 12pt;">31Q) How can we detect OS of the client machine using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans: </span></strong>The&nbsp;<strong>navigator.appVersion</strong>&nbsp;string can be used to detect the operating system on the client machine.</span></p>
<h3><span style="font-size: 12pt;">32Q) How to submit a form using JavaScript by clicking a link?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify; padding-left: 30px;"><span style="color: #000000; font-size: 12pt;">Let's see the JavaScript code to submit the form on clicking the link.</span></p>
<pre class="language-javascript"><code>&lt;form name="myform" action="index.php"&gt;  

Search: &lt;input type='text' name='query' /&gt;  

&lt;a href="javascript: submitform()"&gt;Search&lt;/a&gt;  

&lt;/form&gt;  

&lt;script type="text/javascript"&gt;  

function submitform()  

{  

  document.myform.submit();  

}  

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">33Q) Is JavaScript faster than ASP script?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;">Yes, because it doesn't require a web server's support for execution.</span></p>
<h3><span style="font-size: 12pt;">34Q) How to change the background color of HTML document using JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp;</span></strong></span></p>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong>&nbsp; &nbsp; &nbsp;</strong></span></p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;  

document.body.bgColor="pink";  

&lt;/script&gt;  

</code></pre>
<h3 style="text-align: justify;"><span style="font-size: 12pt;">35Q) How to handle exceptions in JavaScript?</span></h3>
<p style="text-align: justify;"><span style="color: #000000; font-size: 12pt;"><strong><span style="color: #e03e2d;">Ans:&nbsp; </span></strong>By the help of try/catch block, we can handle exceptions in JavaScript. JavaScript supports try, catch, finally, and throw keywords for exception handling.</span></p>
<p style="text-align: justify;"><span style="font-size: 12pt;">Our design of course tutorials and interview questions is practical and informative. At TekSlate, we offer resources to help you learn various IT courses. We avail of both written material and demo video tutorials. For in-depth knowledge and practical experience explore<a href="http://tekslate.com/mapreduce-training" target="_blank" rel="noopener">&nbsp;</a><a href="https://tekslate.com/javascript-training/" target="_blank" rel="noopener">Online&nbsp;JavaScript Training</a>.</span></p>
<hr />
<p style="text-align: justify;">&nbsp;</p>f:{"id":1,"author_designation":"Content Writer","author_name":"TekSlate","author_bio":"<p>TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.</p>","author_img":"https://tekslateassets.s3.amazonaws.com/images/logo.svg","author_url":"tekslate","article_count":"0","field_of_intrest":"","status":1}
11:{"id":38,"views":754,"rating":4.5,"title":"JavaScript Tutorial","url_title":"javascript-tutorials"}
12:{"id":179,"views":5493,"rating":4.4,"title":"JavaScript Interview Questions & Answers","url_title":"javascript-interview-questions-answers"}
13:{"id":1607,"views":293,"rating":4,"title":"Ajax Color Picker Extender","url_title":"ajax-color-picker-extender-example"}
14:{"id":1632,"views":397,"rating":4,"title":"Ajax Always Visible Control Extender","url_title":"ajax-always-visible-control-extender-with-example"}
15:{"id":1649,"views":0,"rating":4,"title":"JavaScript Syntax, Comments, Where To","url_title":"javascript-syntax-comments-where-to"}
16:{"id":1650,"views":0,"rating":4,"title":"JavaScript Variables & Data Types","url_title":"javascript-variables-data-types"}
17:{"id":1651,"views":417,"rating":4,"title":"JavaScript Operators","url_title":"javascript-operators"}
18:{"id":1652,"views":551,"rating":4,"title":"If Statements in JavaScript","url_title":"if-statements-in-javascript-with-examples"}
19:{"id":1653,"views":415,"rating":4,"title":"Loops in JavaScript","url_title":"loops-in-javascript-with-examples"}
1a:{"id":1654,"views":325,"rating":4,"title":"Dialog Boxes in JavaScript","url_title":"dialog-boxes-explination-javascript"}
1b:{"id":1655,"views":278,"rating":4,"title":"Functions in JavaScript","url_title":"functions-javascript"}
1c:{"id":1656,"views":0,"rating":4,"title":"Events in JavaScript with Examples","url_title":"events-in-javascript-with-examples"}
1d:{"id":1657,"views":641,"rating":4,"title":"Page Printing in JavaScrpit","url_title":"page-printing-javascrpit"}
1e:{"id":1658,"views":0,"rating":4,"title":"Cookies in JavaScript","url_title":"cookies-javascript"}
1f:{"id":1659,"views":873,"rating":4,"title":"JavaScript Objects & Properties","url_title":"javascript-objects-properties"}
20:{"id":1676,"views":762,"rating":4,"title":"JavaScript Switch Case","url_title":"javascript-switch-case"}
21:{"id":2109,"views":2541,"rating":4.7,"title":"Next.js Interview Questions","url_title":"nextjs-interview-questions"}
22:{"id":2181,"views":732,"rating":4.6,"title":"React Native Interview Questions ","url_title":"react-native-interview-questions"}
10:["$11","$12","$13","$14","$15","$16","$17","$18","$19","$1a","$1b","$1c","$1d","$1e","$1f","$20","$21","$22"]
24:{"id":4,"blog_id":416,"blog_title":"Embedded Systems Interview Questions","blog_url_title":"interview-questions-on-embedded-systems","order_value":5,"views":1547}
25:{"id":5,"blog_id":1237,"blog_title":"Types of Pointers in C","blog_url_title":"explain-different-types-pointers-c-language","order_value":6,"views":14352}
26:{"id":6,"blog_id":391,"blog_title":"Oracle Procure To Pay Interview Questions","blog_url_title":"interview-questions-on-oracle-procure-to-pay","order_value":1,"views":4352}
27:{"id":7,"blog_id":1216,"blog_title":"Characteristics of C Language","blog_url_title":"characteristics-of-c-language","order_value":2,"views":10834}
28:{"id":8,"blog_id":939,"blog_title":"Salesforce Sample Triggers with different Scenarios","blog_url_title":"15-sample-triggers-different-scenarios","order_value":3,"views":11712}
29:{"id":9,"blog_id":344,"blog_title":"Oracle Financials Interview Questions","blog_url_title":"oracle-financials-interview-questions-and-answers","order_value":4,"views":9437}
2a:{"id":10,"blog_id":441,"blog_title":"Service Desk Analyst Interview Questions","blog_url_title":"interview-questions-on-service-desk-analyst","order_value":7,"views":5421}
2b:{"id":11,"blog_id":381,"blog_title":"SAP OOPS ABAP Interview Questions","blog_url_title":"interview-questions-on-sap-oops-abap","order_value":8,"views":5421}
2c:{"id":12,"blog_id":380,"blog_title":"SAP Adobe Forms Interview Questions","blog_url_title":"interview-questions-on-sap-adobe-forms","order_value":9,"views":1875}
2d:{"id":13,"blog_id":2079,"blog_title":"Power Apps Interview Questions","blog_url_title":"powerapps-interview-questions","order_value":10,"views":7541}
23:["$24","$25","$26","$27","$28","$29","$2a","$2b","$2c","$2d"]
2f:{"id":2,"course":"Core Java Training","rating":"4.8","enrolled":"5703","url_title":"core-java-training"}
30:{"id":10,"course":"Python Training","rating":"4.9","enrolled":"4549","url_title":"python-training"}
31:{"id":44,"course":"Node JS Training","rating":"4.8","enrolled":"2852","url_title":"node-js-training"}
32:{"id":65,"course":"LabVIEW Training","rating":"4.8","enrolled":"96","url_title":"labview-training"}
33:{"id":70,"course":"Mean Stack Training","rating":"4.5","enrolled":"2491","url_title":"mean-stack-training"}
34:{"id":72,"course":"Microservices Training","rating":"4.5","enrolled":"2543 ","url_title":"microservices-training"}
35:{"id":78,"course":"Ruby on Rails Training","rating":"4.8","enrolled":"1254","url_title":"ruby-rails-training"}
36:{"id":98,"course":"Oracle Apex Training","rating":"4.7","enrolled":"945","url_title":"oracle-apex-training"}
37:{"id":99,"course":"Oracle OAF Training","rating":"4.9","enrolled":"4322","url_title":"oracle-oaf-training"}
38:{"id":160,"course":"Java Spring Training","rating":"4.7","enrolled":"1943","url_title":"java-spring-training"}
39:{"id":187,"course":"ReactJS Training","rating":"4.4","enrolled":"138","url_title":"reactjs-training"}
3a:{"id":229,"course":"Advanced Java Training","rating":"4.5","enrolled":"120","url_title":"advanced-java-training"}
3b:{"id":231,"course":".Net Training","rating":"4.1","enrolled":"120","url_title":"net-training"}
3c:{"id":236,"course":"Android Development Training","rating":"4.7","enrolled":"1562","url_title":"android-development-training"}
3d:{"id":245,"course":"JavaScript Training","rating":"4.8","enrolled":"5789","url_title":"javascript-training"}
2e:["$2f","$30","$31","$32","$33","$34","$35","$36","$37","$38","$39","$3a","$3b","$3c","$3d"]
3e:{"id":718,"name":"JavaScript Interview Questions & Answers","slug":"javascript-interview-questions-answers","type":"articles","status":1}
d:{"id":179,"blog_category":244,"blog_type":2,"wp_id":1,"excerpt":"","table_of_content":"","description":"$e","title":"JavaScript Interview Questions & Answers","url_title":"javascript-interview-questions-answers","image_url":"","meta_title":"TOP Java Script Interview Questions [UPDATED] - TCS & Cognizant !!!","meta_desc":"Looking For Java Script Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies","views":5493,"rating":4.4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"245","created_at":"2016-02-20T07:59:14.000Z","updated_at":"2020-10-05T15:02:14.000Z","status":1,"video_schema_name":"","video_schema_upload_date":"","video_schema_description":"","faq_schema_q1":"What is JavaScript?","faq_schema_a1":"JavaScript is a scripting language. It is different from Java language. It is an object-based, lightweight, and cross-platform. It is widely used for client-side validation.","faq_schema_q2":"What is the difference between JavaScript and Jscript?","faq_schema_a2":"Netscape provided the JavaScript language. Microsoft changed the name and called it JScript to avoid the trademark issue. In other words, you can say JScript is the same as JavaScript, but it is provided by Microsoft.","faq_schema_q3":"What is BOM?","faq_schema_a3":"BOM stands for Browser Object Model. It provides interaction with the browser. The default object of the browser is the window.","like_counter":5,"author_details":"$f","related_blogs":"$10","recommended_articles":"$23","recommended_programs":"$2e","category_name":"JavaScript","category_url":"javascript","type_d":"$3e"}
2:["$","$Lb",null,{"rohit":{"trending":{"id":179,"blog_category":244,"blog_type":2,"wp_id":1,"excerpt":"","table_of_content":"","description":"$c","title":"JavaScript Interview Questions & Answers","url_title":"javascript-interview-questions-answers","image_url":"","meta_title":"TOP Java Script Interview Questions [UPDATED] - TCS & Cognizant !!!","meta_desc":"Looking For Java Script Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies","views":5493,"rating":4.4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"245","created_at":"2016-02-20T07:59:14.000Z","updated_at":"2020-10-05T15:02:14.000Z","status":1,"video_schema_name":"","video_schema_upload_date":"","video_schema_description":"","faq_schema_q1":"What is JavaScript?","faq_schema_a1":"JavaScript is a scripting language. It is different from Java language. It is an object-based, lightweight, and cross-platform. It is widely used for client-side validation.","faq_schema_q2":"What is the difference between JavaScript and Jscript?","faq_schema_a2":"Netscape provided the JavaScript language. Microsoft changed the name and called it JScript to avoid the trademark issue. In other words, you can say JScript is the same as JavaScript, but it is provided by Microsoft.","faq_schema_q3":"What is BOM?","faq_schema_a3":"BOM stands for Browser Object Model. It provides interaction with the browser. The default object of the browser is the window.","like_counter":5,"author_details":{"id":1,"author_designation":"Content Writer","author_name":"TekSlate","author_bio":"<p>TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.</p>","author_img":"https://tekslateassets.s3.amazonaws.com/images/logo.svg","author_url":"tekslate","article_count":"0","field_of_intrest":"","status":1},"related_blogs":[{"id":38,"views":754,"rating":4.5,"title":"JavaScript Tutorial","url_title":"javascript-tutorials"},{"id":179,"views":5493,"rating":4.4,"title":"JavaScript Interview Questions & Answers","url_title":"javascript-interview-questions-answers"},{"id":1607,"views":293,"rating":4,"title":"Ajax Color Picker Extender","url_title":"ajax-color-picker-extender-example"},{"id":1632,"views":397,"rating":4,"title":"Ajax Always Visible Control Extender","url_title":"ajax-always-visible-control-extender-with-example"},{"id":1649,"views":0,"rating":4,"title":"JavaScript Syntax, Comments, Where To","url_title":"javascript-syntax-comments-where-to"},{"id":1650,"views":0,"rating":4,"title":"JavaScript Variables & Data Types","url_title":"javascript-variables-data-types"},{"id":1651,"views":417,"rating":4,"title":"JavaScript Operators","url_title":"javascript-operators"},{"id":1652,"views":551,"rating":4,"title":"If Statements in JavaScript","url_title":"if-statements-in-javascript-with-examples"},{"id":1653,"views":415,"rating":4,"title":"Loops in JavaScript","url_title":"loops-in-javascript-with-examples"},{"id":1654,"views":325,"rating":4,"title":"Dialog Boxes in JavaScript","url_title":"dialog-boxes-explination-javascript"},{"id":1655,"views":278,"rating":4,"title":"Functions in JavaScript","url_title":"functions-javascript"},{"id":1656,"views":0,"rating":4,"title":"Events in JavaScript with Examples","url_title":"events-in-javascript-with-examples"},{"id":1657,"views":641,"rating":4,"title":"Page Printing in JavaScrpit","url_title":"page-printing-javascrpit"},{"id":1658,"views":0,"rating":4,"title":"Cookies in JavaScript","url_title":"cookies-javascript"},{"id":1659,"views":873,"rating":4,"title":"JavaScript Objects & Properties","url_title":"javascript-objects-properties"},{"id":1676,"views":762,"rating":4,"title":"JavaScript Switch Case","url_title":"javascript-switch-case"},{"id":2109,"views":2541,"rating":4.7,"title":"Next.js Interview Questions","url_title":"nextjs-interview-questions"},{"id":2181,"views":732,"rating":4.6,"title":"React Native Interview Questions ","url_title":"react-native-interview-questions"}],"recommended_articles":[{"id":4,"blog_id":416,"blog_title":"Embedded Systems Interview Questions","blog_url_title":"interview-questions-on-embedded-systems","order_value":5,"views":1547},{"id":5,"blog_id":1237,"blog_title":"Types of Pointers in C","blog_url_title":"explain-different-types-pointers-c-language","order_value":6,"views":14352},{"id":6,"blog_id":391,"blog_title":"Oracle Procure To Pay Interview Questions","blog_url_title":"interview-questions-on-oracle-procure-to-pay","order_value":1,"views":4352},{"id":7,"blog_id":1216,"blog_title":"Characteristics of C Language","blog_url_title":"characteristics-of-c-language","order_value":2,"views":10834},{"id":8,"blog_id":939,"blog_title":"Salesforce Sample Triggers with different Scenarios","blog_url_title":"15-sample-triggers-different-scenarios","order_value":3,"views":11712},{"id":9,"blog_id":344,"blog_title":"Oracle Financials Interview Questions","blog_url_title":"oracle-financials-interview-questions-and-answers","order_value":4,"views":9437},{"id":10,"blog_id":441,"blog_title":"Service Desk Analyst Interview Questions","blog_url_title":"interview-questions-on-service-desk-analyst","order_value":7,"views":5421},{"id":11,"blog_id":381,"blog_title":"SAP OOPS ABAP Interview Questions","blog_url_title":"interview-questions-on-sap-oops-abap","order_value":8,"views":5421},{"id":12,"blog_id":380,"blog_title":"SAP Adobe Forms Interview Questions","blog_url_title":"interview-questions-on-sap-adobe-forms","order_value":9,"views":1875},{"id":13,"blog_id":2079,"blog_title":"Power Apps Interview Questions","blog_url_title":"powerapps-interview-questions","order_value":10,"views":7541}],"recommended_programs":[{"id":2,"course":"Core Java Training","rating":"4.8","enrolled":"5703","url_title":"core-java-training"},{"id":10,"course":"Python Training","rating":"4.9","enrolled":"4549","url_title":"python-training"},{"id":44,"course":"Node JS Training","rating":"4.8","enrolled":"2852","url_title":"node-js-training"},{"id":65,"course":"LabVIEW Training","rating":"4.8","enrolled":"96","url_title":"labview-training"},{"id":70,"course":"Mean Stack Training","rating":"4.5","enrolled":"2491","url_title":"mean-stack-training"},{"id":72,"course":"Microservices Training","rating":"4.5","enrolled":"2543 ","url_title":"microservices-training"},{"id":78,"course":"Ruby on Rails Training","rating":"4.8","enrolled":"1254","url_title":"ruby-rails-training"},{"id":98,"course":"Oracle Apex Training","rating":"4.7","enrolled":"945","url_title":"oracle-apex-training"},{"id":99,"course":"Oracle OAF Training","rating":"4.9","enrolled":"4322","url_title":"oracle-oaf-training"},{"id":160,"course":"Java Spring Training","rating":"4.7","enrolled":"1943","url_title":"java-spring-training"},{"id":187,"course":"ReactJS Training","rating":"4.4","enrolled":"138","url_title":"reactjs-training"},{"id":229,"course":"Advanced Java Training","rating":"4.5","enrolled":"120","url_title":"advanced-java-training"},{"id":231,"course":".Net Training","rating":"4.1","enrolled":"120","url_title":"net-training"},{"id":236,"course":"Android Development Training","rating":"4.7","enrolled":"1562","url_title":"android-development-training"},{"id":245,"course":"JavaScript Training","rating":"4.8","enrolled":"5789","url_title":"javascript-training"}],"category_name":"JavaScript","category_url":"javascript","type_d":{"id":718,"name":"JavaScript Interview Questions & Answers","slug":"javascript-interview-questions-answers","type":"articles","status":1}},"type":"articles","categories":[]},"data":"$d"}]
a:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"TOP Java Script Interview Questions [UPDATED] - TCS & Cognizant !!!"}],["$","meta","3",{"name":"description","content":"Looking For Java Script Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies"}],["$","meta","4",{"name":"application-name","content":"tekslatetutor"}],["$","meta","5",{"name":"generator","content":"tekslatetutor"}],["$","link","6",{"rel":"canonical","href":"https://tekslate.com/javascript-interview-questions-answers"}],["$","meta","7",{"property":"og:title","content":"TOP Java Script Interview Questions [UPDATED] - TCS & Cognizant !!!"}],["$","meta","8",{"property":"og:description","content":"Looking For Java Script Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies"}],["$","meta","9",{"property":"og:url","content":"https://tekslate.com/javascript-interview-questions-answers"}],["$","meta","10",{"property":"og:site_name","content":"tekslatetutor"}],["$","meta","11",{"property":"og:locale","content":"en_US"}],["$","meta","12",{"property":"og:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","meta","13",{"property":"og:image:width","content":"1200"}],["$","meta","14",{"property":"og:image:height","content":"628"}],["$","meta","15",{"property":"og:type","content":"website"}],["$","meta","16",{"name":"twitter:card","content":"summary"}],["$","meta","17",{"name":"twitter:creator","content":"@tekslatetutor"}],["$","meta","18",{"name":"twitter:title","content":"TOP Java Script Interview Questions [UPDATED] - TCS & Cognizant !!!"}],["$","meta","19",{"name":"twitter:description","content":"Looking For Java Script Interview Questions with Answers? Here we have compiled set of questions from the students who have attended interviews in Fortune 500 companies"}],["$","meta","20",{"name":"twitter:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","link","21",{"rel":"icon","href":"https://tekslateassets.s3.amazonaws.com/images/favicon.svg"}]]
1:null
