{"id":312,"date":"2024-12-19T09:14:35","date_gmt":"2024-12-19T09:14:35","guid":{"rendered":""},"modified":"2024-12-19T09:14:35","modified_gmt":"2024-12-19T09:14:35","slug":"javascript-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/","title":{"rendered":"Latest Top 20 Javascript Interview Questions and Answers for Freshers"},"content":{"rendered":"<div style=\"background:#edf6ff;border: 1px solid #aaa;border-radius: 4px;box-shadow: 0 1px 1px rgb(0 0 0 \/ 5%);display:table;margin-bottom:1em;padding: 10px;position:relative;width:auto;\">\n<div class=\"btnSHown\" style=\"color:blue;font-size:18px;font-weight:600;cursor:pointer;\n\"><button class=\"btn btn-primary ml-1 mr-2 px-1 py-0\"><img decoding=\"async\" src=\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\" style=\"width: 33px;\n    filter: invert(1);\" \/><\/button><span id=\"tbleShowhdd\">Table of Contents [show]<\/span><\/div>\n<nav>\n<ul>\n<li><a class=\"blog-heading_link-c\" href=\"#basic-introduction-to-javascript\" title=\"1.Basic Introduction to Javascript\">1. Basic Introduction to Javascript<\/a><\/li>\n<li><a class=\"blog-heading_link-c\" href=\"#top-20-javascript-interview-questions-and-answers\" title=\"2.Top 20 Javascript Interview Questions and Answers\">2. Top 20 Javascript Interview Questions and Answers<\/a><\/li>\n<li><a class=\"blog-heading_link-c\" href=\"#conclusion\" title=\"3.Conclusion\">3. Conclusion<\/a><\/li>\n<\/ul>\n<\/nav>\n<\/div>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Are you a JavaScript developer looking to land a job at one of the top US multinational companies (MNCs)? Or maybe you&rsquo;re a recruiter from a leading US MNC searching for the perfect JavaScript developer? Either way, you&rsquo;ve come to the right place! This guide will discuss top JavaScript interview questions and answers to help you either secure your dream job or find the ideal candidate with ease.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">With expert tips and easy-to-understand explanations, this collection will save you time and effort while boosting your chances of success. So, let&rsquo;s dive in and discover how to ace your next interview or hire the best JavaScript developer!<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h2 id=\"basic-introduction-to-javascript\" style=\"line-height:1.38; margin-top:24px; margin-bottom:8px\">\n<span style=\"font-size:16pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Basic Introduction to Javascript<\/span><\/span><\/span><\/span><\/span><\/span><\/h2>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Brendan Eich created JavaScript in 1995, which is one of the most popular programming languages for web development. Initially, it was designed to create dynamic web pages. A JavaScript program also called a script, can add to the HTML of any web page and runs automatically when the page loads. Over time, JavaScript has evolved significantly. Now, it can run on web browsers, servers, and almost any device with a JavaScript Engine.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">After HTML and CSS, JavaScript is considered the third core technology for web development. It&rsquo;s a versatile scripting language used for creating websites, mobile apps, web servers, games, and much more. Since JavaScript is object-oriented, it&rsquo;s perfect for building interactive and functional websites and applications.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">While JavaScript was originally made to run in browsers, modern advancements like Node.js allow developers to use it on servers as well. In short, you can create web and mobile apps, real-time applications, streaming platforms, and even video games with JavaScript. Additionally, JavaScript frameworks and libraries, such as React and Angular, help developers save time by providing pre-written code for repetitive tasks. This allows them to focus more on building features and delivering high-quality applications efficiently.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h3 id=\"top-20-javascript-interview-questions-and-answers\" style=\"line-height:1.38; margin-top:21px; margin-bottom:5px\">\n<span style=\"font-size:13.999999999999998pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#434343\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Top 20 Javascript Interview Questions and Answers<\/span><\/span><\/span><\/span><\/span><\/span><\/h3>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Here are some common JavaScript interview questions for freshers to help them prepare for a front-end development role. Practicing these will boost your chances of acing the interview and securing your dream job.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">1. What&rsquo;s the Difference Between JavaScript and Java?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">While both Java and JavaScript share similar names, they are, in fact, completely different technologies with unique purposes. To help you better understand their differences, we have clarified your question.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Java<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Java is a powerful object-oriented programming language. It is used to build robust applications and is especially known for its cross-platform compatibility. Moreover, with the virtual machine platform, Java allows developers to write code once and run it on almost any device.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">JavaScript<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">On the other hand, JavaScript is a lightweight scripting language specifically designed for creating interactive and dynamic web pages. Unlike Java, JavaScript can update and manipulate HTML elements in real-time, making websites more engaging and user-friendly.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">In conclusion, while Java is ideal for building large-scale applications, JavaScript excels at adding interactivity to web pages. Both are incredibly useful; however, they serve completely different purposes.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">This concept is crucial to prepare for JavaScript interview questions and answers.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">2. What are the Different Data Types Used in JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Here are the different types of data that JavaScript supports. Understanding these will help you write better and more efficient code:<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Boolean is used for values that are either true or false.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Null represents an empty or unknown value.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Undefined is for variables that have been declared but not yet assigned a value.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">The number includes all numerical values, like integers and decimals (floating-point numbers).<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Strings are used to represent text, including characters and alphanumeric values.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Objects are used for collections of data or more complex values.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Symbols are unique identifiers that can be used for object properties.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">By using these data types effectively, you can manage your data and code in a more organized way.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">3. Why Is JavaScript a Powerful Programming Language?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Here are some key features of JavaScript that make it such a popular choice for developers. Moving ahead, we will let you know some important Javascript interview questions.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Lightweight and Interpreted:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> JavaScript is a lightweight programming language that is easy to use and doesn&rsquo;t require heavy resources. Plus, it&rsquo;s interpreted, so it runs directly in the browser without needing to be compiled.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Cross-Platform Compatibility:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> It works seamlessly across different platforms and browsers, making it incredibly versatile.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Open-Source: <\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">JavaScript is open-source, meaning anyone can use, modify, and share it freely. Moreover, it fosters a large community of developers.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Object-Oriented: <\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">It supports object-oriented programming principles, allowing you to create reusable and organized code.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Integration-Friendly:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> JavaScript integrates effortlessly with both backend and frontend technologies. In addition, it enables developers to build full-stack applications with ease.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Ideal for Network-Based Applications:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> It&rsquo;s especially well-suited for developing interactive, network-based applications, such as web and mobile apps.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">With these features, JavaScript continues to be a go-to choice for developers working on a wide range of projects.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">4. How to Create Objects in JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">JavaScript is a programming language that is designed to work with objects. Therefore, it&#39;s a great tool for building web applications that rely on objects to represent real-world things. As a result, JavaScript encourages developers to use objects in their projects.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">const student = {<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">&nbsp;&nbsp;&nbsp;&nbsp;name: &#39;John&#39;,<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">&nbsp;&nbsp;&nbsp;&nbsp;age: 17<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">}<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Furthermore, we will discuss javascript basic interview questions.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">5. How Can You Create the Array in JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">To learn how to create an array in JavaScript, follow these steps:<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">var a = [];<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">var b = [&lsquo;a&rsquo;, &lsquo;b&rsquo;, &lsquo;c&rsquo;, &lsquo;d&rsquo;, &lsquo;e&rsquo;];<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Further, we will let you know some Javascript interview questions and answers.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">6. What is Variable Scope in JavaScript? Explain the Difference Between Global and Local Scope with Examples.<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">The scope of a variable determines where it can be used in your JavaScript code. There are two main types of scope:<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Global Scope:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> Variables declared outside of any function have a global scope. In short, they can access from anywhere in your code.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Local Scope:<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> Variables declared inside a function have local scope. Moreover, they can only access that function.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">By understanding these scopes, you can write cleaner and more efficient JavaScript code. In addition, we will describe JavaScript coding questions and answers.&nbsp;&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">7. Explain the &lsquo;this&rsquo; keyword in JavaScript.<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">The &ldquo;this&rdquo; keyword is a special keyword in JavaScript that refers to the object that the current code is being executed. In other words, it represents the object that &quot;owns&quot; the code.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">For example, it&#39;s commonly used in constructors to assign values to object properties. Moreover, this allows you to create objects with specific properties and methods.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">8. Is JavaScript Case-Sensitive?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Yes, <a href=\"https:\/\/www.upskillcampus.com\/blog\/javascript-tutorial\" target=\"_blank\">JavaScript<\/a> is a case-sensitive language. In short, you need to be careful about the capitalization of keywords, variables, and function names. For example, myVariable is different from MyVariable.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">To avoid errors, it&#39;s important to be consistent with your capitalization when writing JavaScript code.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Here, we have discussed some basic Javascript interview questions and answers for freshers.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">9. Who Created JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Netscape Communications Corporation developed JavaScript. It was originally called LiveScript, but it was later renamed to JavaScript.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">10. Can You Pass Anonymous Functions as Arguments?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Yes, you can! In JavaScript, you can create anonymous functions and pass them as arguments to other functions. This is a powerful technique that allows you to create flexible and reusable code. For example, you can define a function that takes another function as an argument and then calls that function inside its body. This is often used in callback functions and higher-order functions. The upcoming section will discuss some Javascript interview questions and answers.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">11. Explain == and === in JavaScript<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Both == and === are used to compare values in JavaScript. However, they work slightly differently:<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">== (Loose Equality):<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> This operator compares values after converting them to the same type. For example, &quot;10&quot; and 10 would be considered equal because JavaScript converts the string &quot;10&quot; to the number 10 before comparing.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li aria-level=\"1\" style=\"list-style-type:disc\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:700\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">=== (Strict Equality):<\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\"> This operator compares both the values and the data types of the operands. If the values and types are the same, it returns true. Otherwise, it returns false.<\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">It&#39;s generally recommended to use the strict equality operator (===) to avoid unexpected behavior caused by type coercion.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">12. Describe the typeof Operator<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">The typeof operator is a useful tool in JavaScript for determining the data type of a variable or expression. In essence, it returns a string that indicates the data type. For example, if you have a variable x and you want to know its type, you can use typeof x. This will return a string like &quot;number,&quot; &quot;string,&quot; &quot;boolean,&quot; &quot;object,&quot; &quot;undefined,&quot; or &quot;function,&quot; depending on the value of x.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">To summarize, the typeof operator is a simple yet powerful way to check the data type of any value in JavaScript.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">13. What is a Prompt Box?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">A prompt box is a small window that pops up on a webpage to ask the user for input. In other words, it&#39;s a simple way to get information from the user before they continue interacting with the page. For example, a prompt box might ask for a username, password, or a specific piece of information.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Typically, a prompt box includes a text field where the user can type their input, a label to explain what kind of input is expected, and two buttons: &quot;OK&quot; to submit the input and &quot;Cancel&quot; to close the box without submitting.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">14. How to Effectively Debug JavaScript Code?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Debugging is a crucial skill for any JavaScript developer. Fortunately, modern web browsers like Chrome, Firefox, and Edge come with built-in developer tools that make debugging easier. To access these tools, simply press F12 on your keyboard.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">15. Explain the Symbols Used for Comments in Javascript.<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">This is one of the Java script interview questions that is usually asked.&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">\/\/ for Single line comments and<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">\/* Multi<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">Line<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">Comment<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:italic\"><span style=\"text-decoration:none\">*\/<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">16. What is Variable Typing in JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">In JavaScript, we can assign different types of values to variables. For example, you can store a number like 42 or a text string like &quot;Hello, world!&quot; in a variable.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">17. What are Cookies?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Cookies are small text files that websites store on your computer. When you visit a website, the website can send a cookie to your computer. Moreover, this cookie contains information about your visit, such as your preferences, login information, or items in your shopping cart.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">18. Explain Event Handlers in JavaScript.<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">The upcoming section will discuss one of the most important javascript questions and answers.&nbsp;&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"line-height:1.38\"><span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Events are actions that happen on a webpage, such as clicking a button, hovering over a link, or submitting a form. To respond to these events, we use event handlers.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">19. Explain ECMAScript.<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">ECMAScript is a programming language that forms the basis for JavaScript. In other words, it&#39;s a set of rules and standards that define how JavaScript works. As a result, it&#39;s widely used to create interactive web pages and applications.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">20. What is NaN in JavaScript?<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">NaN stands for &quot;Not a Number&quot; in JavaScript. It&#39;s a special value that indicates an invalid numerical result. For example, when you try to divide a number by zero or perform a mathematical operation on a non-numeric value, JavaScript will return NaN.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 id=\"conclusion\" style=\"line-height:1.38; margin-top:19px; margin-bottom:5px\">\n<span style=\"font-size:12pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#666666\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">Conclusion<\/span><\/span><\/span><\/span><\/span><\/span><\/h4>\n<p style=\"line-height:1.38\">\n<span style=\"font-size:11pt; font-variant:normal; white-space:pre-wrap\"><span style=\"font-family:Arial,sans-serif\"><span style=\"color:#000000\"><span style=\"font-weight:400\"><span style=\"font-style:normal\"><span style=\"text-decoration:none\">JavaScript is a powerful language that&#39;s essential for building modern websites. It&#39;s used to create dynamic and interactive web pages. Therefore, understanding JavaScript&#39;s core concepts and best practices is crucial for web developers. This guide has covered many important JavaScript interview questions and answers, from basic concepts to more advanced techniques. However, remember that practice is the key to mastering JavaScript. So, keep exploring, experimenting, and building projects to improve your skills.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<h4>\n<strong>Frequently Asked Questions<\/strong><\/h4>\n<div class=\"inblogffschema-faq\">\n<p>\n<strong>Q1. What is JavaScript and its types? <\/strong><\/p>\n<p><strong>Ans<\/strong>. JavaScript is a flexible language that doesn&#39;t require you to declare the type of a variable beforehand. In other words, you can assign different types of values (like numbers, text, or objects) to the same variable at different times.<\/p>\n<p>\n<strong>Q2. Is JavaScript a type of language? <\/strong><\/p>\n<p><strong>Ans<\/strong>. JavaScript is a versatile programming language that can be used in many different ways. For example, it can be used to create dynamic web pages, web applications, and even games.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Discover the latest top 20 JavaScript interview questions and answers tailored for freshers. This comprehensive guide covers essential topics like data types, closures, event handling, promises, and more, ensuring you&#8217;re well-prepared for your next interview. Perfect for aspiring developers aiming to build strong foundations in JavaScript and ace their dream job!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs\" \/>\n<meta property=\"og:description\" content=\"Discover the latest top 20 JavaScript interview questions and answers tailored for freshers. This comprehensive guide covers essential topics like data types, closures, event handling, promises, and more, ensuring you&#039;re well-prepared for your next interview. Perfect for aspiring developers aiming to build strong foundations in JavaScript and ace their dream job!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest Insights &amp; Guides | Career Upskilling Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-19T09:14:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/person\/53299d25f01528dd106c128db9251a11\"},\"headline\":\"Latest Top 20 Javascript Interview Questions and Answers for Freshers\",\"datePublished\":\"2024-12-19T09:14:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\"},\"wordCount\":2122,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\",\"url\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\",\"name\":\"Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs\",\"isPartOf\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\",\"datePublished\":\"2024-12-19T09:14:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage\",\"url\":\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\",\"contentUrl\":\"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.upskillcampus.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Latest Top 20 Javascript Interview Questions and Answers for Freshers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#website\",\"url\":\"https:\/\/www.upskillcampus.com\/blog\/\",\"name\":\"Latest Insights &amp; Guides | Career Upskilling Blogs\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.upskillcampus.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#organization\",\"name\":\"Latest Insights &amp; Guides | Career Upskilling Blogs\",\"url\":\"https:\/\/www.upskillcampus.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.upskillcampus.com\/blog\/wp-content\/uploads\/2025\/02\/upskill-campus-logo.png\",\"contentUrl\":\"https:\/\/www.upskillcampus.com\/blog\/wp-content\/uploads\/2025\/02\/upskill-campus-logo.png\",\"width\":300,\"height\":116,\"caption\":\"Latest Insights &amp; Guides | Career Upskilling Blogs\"},\"image\":{\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/person\/53299d25f01528dd106c128db9251a11\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/www.upskillcampus.com\/blog\"],\"url\":\"https:\/\/www.upskillcampus.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/","og_locale":"en_US","og_type":"article","og_title":"Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs","og_description":"Discover the latest top 20 JavaScript interview questions and answers tailored for freshers. This comprehensive guide covers essential topics like data types, closures, event handling, promises, and more, ensuring you're well-prepared for your next interview. Perfect for aspiring developers aiming to build strong foundations in JavaScript and ace their dream job!","og_url":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/","og_site_name":"Latest Insights &amp; Guides | Career Upskilling Blogs","article_published_time":"2024-12-19T09:14:35+00:00","og_image":[{"url":"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#article","isPartOf":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/"},"author":{"name":"admin","@id":"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/person\/53299d25f01528dd106c128db9251a11"},"headline":"Latest Top 20 Javascript Interview Questions and Answers for Freshers","datePublished":"2024-12-19T09:14:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/"},"wordCount":2122,"commentCount":0,"publisher":{"@id":"https:\/\/www.upskillcampus.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/","url":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/","name":"Latest Top 20 Javascript Interview Questions and Answers for Freshers - Latest Insights &amp; Guides | Career Upskilling Blogs","isPartOf":{"@id":"https:\/\/www.upskillcampus.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage"},"image":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg","datePublished":"2024-12-19T09:14:35+00:00","breadcrumb":{"@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#primaryimage","url":"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg","contentUrl":"https:\/\/www.theiotacademy.co\/assets\/images\/socialicons\/bars-solid-icon-new.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.upskillcampus.com\/blog\/javascript-interview-questions-and-answers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.upskillcampus.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Latest Top 20 Javascript Interview Questions and Answers for Freshers"}]},{"@type":"WebSite","@id":"https:\/\/www.upskillcampus.com\/blog\/#website","url":"https:\/\/www.upskillcampus.com\/blog\/","name":"Latest Insights &amp; Guides | Career Upskilling Blogs","description":"","publisher":{"@id":"https:\/\/www.upskillcampus.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.upskillcampus.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.upskillcampus.com\/blog\/#organization","name":"Latest Insights &amp; Guides | Career Upskilling Blogs","url":"https:\/\/www.upskillcampus.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.upskillcampus.com\/blog\/wp-content\/uploads\/2025\/02\/upskill-campus-logo.png","contentUrl":"https:\/\/www.upskillcampus.com\/blog\/wp-content\/uploads\/2025\/02\/upskill-campus-logo.png","width":300,"height":116,"caption":"Latest Insights &amp; Guides | Career Upskilling Blogs"},"image":{"@id":"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.upskillcampus.com\/blog\/#\/schema\/person\/53299d25f01528dd106c128db9251a11","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af615012e47fb46f753324ae6be7640f155bf27b583328f36862d4e5a1a55b83?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.upskillcampus.com\/blog"],"url":"https:\/\/www.upskillcampus.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":0,"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.upskillcampus.com\/blog\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}