Meta tags:
description= JavaScript Interview Questions and Answers 2023. Contribute to surbhidighe/JavaScript-Top-Interview-Questions development by creating an account on GitHub.;
Headings (most frequently used words):
what, is, javascript, and, the, difference, between, in, object, how, to, an, of, can, are, function, different, ways, you, using, we, create, array, operator, event, navigation, es6, method, if, by, threaded, features, it, local, with, name, use, scope, repository, about, files, footer, topics, resources, stars, watchers, forks, operators, single, or, arrow, functions, its, do, destructuring, two, arrays, any, undefined, callback, global, variables, storage, keyword, access, js, prototype, role, json, box, page, get, copy, determine, extensible, objects, does, sparse, dense, new, constructor, interview, questions, menu, latest, commit, history, folders, releases, packages, used, contributors, data, types, multi, mean, synthetic, events, combine, 10, why, dynamically, typed, language, 11, undeclared, 12, null, 13, temporal, dead, zone, 14, iife, 15, hoisting, 16, cookies, 17, memoization, 18, var, let, const, 19, 20, possible, have, both, same, 21, session, 22, foreach, map, 23, rest, 24, spread, 25, async, defer, 26, nullish, coalescing, 27, parameter, argument, 28, closure, 29, declaration, expression, 30, 31, window, document, 32, strict, mode, 33, empty, 34, nan, 35, naming, convention, 36, call, apply, bind, 37, isnan, 38, this, 39, add, comments, 40, typeof, 41, case, sensitive, 42, push, unshift, 43, pop, shift, 44, dom, elements, 45, promises, 46, 47, hell, 48, loop, 49, 50, 51, aync, await, 52, preventdefault, 53, stringify, 54, stop, settimeout, 55, supports, asynchronous, operations, 56, 57, 58, convert, string, integer, 59, find, operating, system, client, machine, 60, some, frameworks, libraries, 61, bubbling, capturing, 62, stoppropagation, 63, change, style, element, 64, 65, alert, confirmation, 66, handle, exceptions, 67, advantages, external, 68, anonymous, 69, first, order, 70, properties, 71, slice, splice, 72, escape, characters, 73, redirect, 74, innerhtml, innertext, 75, current, time, 76, currying, 77, shallow, deep, 78, service, worker, 79, 80, all, keys, 81, unary, 82, promise, chaining, 83, eval, 84, assign, default, values, 85, not, 86, many, make, non, 87, freeze, 88, seal, 89, disabled, on, 90, compare, date, 91, support, automatic, type, conversion, 92, variable, shadowing, 93, ternary, 94, 95, length, property, behave, vs, click, like, project, contribution, guidelines, literals, comma, separated, set, value, pairs, that, wrapped, inside, curly, braces, creates, existing, as, newly, created, allows, help, class, feature, syntax,
Text of the page (most frequently used words):
the (314), and (164), #function (131), javascript (114), console (109), log (106), top (104), what (103), scroll (95), output (91), object (78), can (67), const (62), let (60), that (57), name (57), array (53), are (49), this (44), used (42), value (42), between (42), arr (41), not (40), difference (40), surbhi (37), new (36), for (36), scope (34), method (34), you (33), using (33), result (31), event (30), variable (29), how (28), code (27), operator (23), message (23), with (22), element (22), elements (21), returns (21), its (21), use (21), different (21), has (19), data (19), ways (19), add (18), undefined (18), variables (18), any (18), functions (18), window (18), person (18), interview (17), properties (17), document (17), callback (17), questions (16), number (16), from (16), declared (16), same (16), argument (16), firstname (16), single (15), demo (15), local (15), all (15), return (15), property (14), browser (14), obj (14), will (14), global (14), then (14), block (14), call (14), github (13), page (13), promise (13), length (12), allows (12), when (12), string (12), json (12), hello (12), defined (12), var (12), time (11), empty (11), expression (11), one (11), two (11), your (11), null (11), nan (11), only (11), get (11), represents (11), which (11), they (11), es6 (11), but (11), storage (11), does (10), date (10), objects (10), existing (10), default (10), copy (10), html (10), first (10), dom (10), printname (10), dense (9), sparse (9), into (9), have (9), error (9), threaded (9), features (9), create (9), session (9), some (8), true (8), type (8), another (8), false (8), obj1 (8), side (8), example (8), age (8), web (8), location (8), arguments (8), current (8), characters (8), lastname (8), async (8), arrow (8), newarr (8), declaration (8), cookie (8), refers (7), gettime (7), user (7), returned (7), asynchronous (7), keys (7), without (7), methods (7), spread (7), specified (7), destructuring (7), access (7), inside (7), both (7), await (7), ecmascript (7), language (7), key (7), prototype (7), num2 (7), num1 (7), bind (7), apply (7), hoisted (7), map (7), repository (6), support (6), script (6), determine (6), property1 (6), modify (6), non (6), var1 (6), assign (6), takes (6), order (6), strong (6), character (6), tab (6), splice (6), box (6), dighe (6), style (6), more (6), operators (6), being (6), events (6), been (6), their (6), class (6), keyword (6), displayname (6), constructor (6), strict (6), parameter (6), foreach (6), initialized (6), cache (6), set (6), security (5), readme (5), arrays (5), where (5), write (5), line (5), means (5), outer (5), date1 (5), disabled (5), seal (5), freeze (5), extensible (5), hand (5), after (5), unary (5), read (5), creates (5), original (5), stringify (5), getelementbyid (5), such (5), escape (5), anonymous (5), referenceerror (5), alert (5), change (5), mode (5), client (5), within (5), settimeout (5), resolved (5), rejected (5), called (5), each (5), immediately (5), typeof (5), comments (5), isnan (5), something (5), files (5), hoisting (5), action (4), cookies (4), navigation (4), forks (4), stars (4), index (4), while (4), left (4), otherwise (4), yes (4), supports (4), conversion (4), date2 (4), provides (4), content (4), property2 (4), values (4), response (4), indore (4), notation (4), worker (4), executes (4), deep (4), also (4), shallow (4), currenttime (4), built (4), world (4), innertext (4), div (4), innerhtml (4), slice (4), designation (4), sayhello (4), them (4), catch (4), handle (4), stop (4), role (4), triggered (4), capturing (4), bubbling (4), system (4), before (4), operand (4), parseint (4), context (4), types (4), operations (4), preventdefault (4), until (4), scoped (4), parameters (4), promises (4), rest (4), 2015 (4), stack (4), loop (4), shift (4), pop (4), unshift (4), push (4), determined (4), invoke (4), names (4), undeclared (4), was (4), introduced (4), welcome (4), stored (4), because (4), loaded (4), defer (4), arr3 (4), arr2 (4), arr1 (4), iife (4), tdz (4), temporal (4), dead (4), zone (4), commit (4), developers (4), build (4), signed (4), copilot (4), contributors (3), resources (3), answers (3), 2023 (3), about (3), even (3), every (3), assigned (3), right (3), ternary (3), else (3), statement (3), shadowing (3), automatic (3), compare (3), noscript (3), tag (3), delete (3), makes (3), eval (3), chaining (3), tasks (3), greet (3), city (3), containing (3), service (3), changes (3), done (3), currying (3), down (3), take (3), seconds (3), modifies (3), tags (3), text (3), https (3), replace (3), history (3), represented (3), remove (3), removed (3), operation (3), other (3), there (3), try (3), exceptions (3), contains (3), typically (3), confirmation (3), hierarchy (3), stoppropagation (3), eventually (3), api (3), libraries (3), next (3), frameworks (3), platform (3), find (3), operating (3), machine (3), convert (3), accessible (3), outside (3), generally (3), behavior (3), execution (3), feature (3), stands (3), hell (3), three (3), possible (3), collection (3), last (3), case (3), sensitive (3), multi (3), pass (3), boolean (3), uppercase (3), checks (3), closure (3), created (3), passed (3), input (3), foo (3), nullish (3), coalescing (3), parsing (3), executed (3), available (3), need (3), over (3), receives (3), across (3), browsers (3), updated (3), memoization (3), parentheses (3), runtime (3), dynamically (3), typed (3), why (3), synthetic (3), commits (3), actions (3), quality (3), refresh (3), reload (3), sign (3), changelog (3), customer (3), enterprise (3), grade (3), perform (2), community (2), status (2), footer (2), report (2), watching (2), watchers (2), activity (2), frontend (2), topics (2), 100 (2), indices (2), behave (2), condition (2), expression1 (2), expression2 (2), compact (2), inner (2), said (2), enabled (2), should (2), displayed (2), supported (2), property3 (2), immutable (2), many (2), make (2), isextensible (2), finaldata (2), anotherdata (2), fetch (2), process (2), executing (2), series (2), easy (2), parse (2), file (2), associated (2), independently (2), depending (2), interface (2), completely (2), own (2), memory (2), made (2), reflected (2), curryingadd (2), multiple (2), minutes (2), hours (2), retrieves (2), including (2), www (2), com (2), href (2), redirect (2), backslash (2), double (2), quote (2), special (2), quotes (2), below (2), common (2), way (2), propertyname (2), uses (2), bracket (2), dot (2), sayhi (2), load (2), advantages (2), external (2), exception (2), labeled (2), confirm (2), fullname (2), extract (2), outermost (2), propagated (2), bubbles (2), innermost (2), propagation (2), determines (2), receive (2), navigator (2), out (2), converts (2), numeric (2), integer (2), part (2), certain (2), still (2), provided (2), timerid (2), cleartimeout (2), jsonstring (2), form (2), may (2), prevent (2), getdata (2), like (2), aync (2), sum (2), literals (2), classes (2), major (2), queue (2), waits (2), response4 (2), response3 (2), response2 (2), response1 (2), person1 (2), inherit (2), failed (2), reject (2), resolve (2), instead (2), css (2), selector (2), removes (2), adds (2), end (2), var2 (2), comment (2), click (2), belongs (2), invoked (2), attach (2), constants (2), meaningful (2), word (2), naming (2), convention (2), mathematical (2), dividing (2), zero (2), etc (2), enclosed (2), braces (2), either (2), level (2), manipulate (2), assignment (2), followed (2), lexical (2), during (2), parallel (2), useful (2), scripts (2), depend (2), soon (2), obj3 (2), obj2 (2), dots (2), india (2), profile (2), addition (2), numbers (2), represent (2), chainable (2), iterate (2), once (2), deleted (2), closed (2), however (2), callbackfun (2), retrieving (2), calculating (2), memoizedadd (2), based (2), username (2), declarations (2), expressions (2), here (2), yet (2), datatype (2), combine (2), around (2), native (2), work (2), mean (2), concise (2), syntax (2), provide (2), comparing (2), operands (2), help (2), info (2), software (2), engineer (2), occupation (2), primitive (2), scripting (2), pull (2), coding (2), guidelines (2), project (2), contribution (2), open (2), source (2), collaboration (2), items (2), latest (2), menu (2), must (2), star (2), settings (2), insights (2), projects (2), surbhidighe (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), share, personal, information, manage, contact, docs, privacy, terms, 2026, inc, packages, releases, equals, 101, highest, spots, gaps, holes, unassigned, missing, evaluated, entire, shorthand, conditional, myfunction, shadows, shadowed, implicit, engine, alternative, preventextensions, added, falsy, evaluates, printfinaldata, printanotherdata, printdata, api_url, term, describe, specific, test3, test2, test1, users, lightweight, interchange, format, humans, machines, generate, kind, operates, background, decoupled, primary, thread, capable, diverse, essentially, space, points, therefore, breaking, getseconds, getminutes, gethours, excluding, adding, navigate, carriage, newline, working, ampersands, apostrophes, requires, often, these, instruct, interpret, correctly, copying, section, correspond, separation, reusability, ease, editing, improve, pages, might, throw, handles, occurs, buttons, cancel, ask, button, display, red, backgroundcolor, mydiv, propagating, child, parent, mechanisms, handling, listener, attached, react, backbone, angular, ember, vue, meteor, linux, x86_64, abc, placed, plus, optional, radix, base, numeral, visibility, accessibility, execute, task, 5000, cancels, timer, equivalent, submits, sends, url, attribute, cases, want, openweathermap, org, weather, 20york, appid, your_api_key, ensures, pause, looks, synchronous, works, self, contained, template, destructing, known, sixth, version, specification, significant, places, mechanism, illusion, multithreaded, despite, allowing, blocking, processing, callbacks, monitors, response5, asyncfunc5, asyncfunc4, asyncfunc3, asyncfunc2, asyncfunc1, situation, nested, several, levels, making, difficult, maintain, john, instances, given, asynchronoustaskfunction, successfully, completed, initial, state, pending, directly, states, match, queryselectorall, matches, queryselector, getelementsbytagname, getelementsbyclassname, beginning, uncaught, considered, indicates, multiline, enclose, forward, slashes, handler, alone, referes, general, anytime, belonged, hasname, isloading, descriptive, prefixes, pascalcase, letter, camelcase, lowercase, subsequent, words, blabla, sqrt, math, multiplying, unrepresentable, assigning, put, exact, statements, performs, additional, bugs, errors, unnoticed, duplicate, title, createelement, topmost, various, literal, similar, require, defines, combination, environment, gives, argument2, argument1, parameter2, parameter1, actual, definition, expects, check, logical, finished, don, attributes, concatenate, iterable, individual, collects, remaining, reduce, indefinite, just, sort, filter, performing, transformed, ends, persist, navigates, away, website, windows, tabs, origin, store, precedence, passing, hey, declare, differences, technique, optimize, performance, caching, results, expensive, calls, times, calculations, memoizing, cached, expires, thu, jan, 1970, utc, path, expiration, past, cookie_variable, piece, small, computer, note, initialization, moved, goes, written, starts, enter, start, reaches, blank, intentional, absence, doesn, exists, variable_two, variable_one, holds, num3, unique, act, cross, wrapper, except, identically, list, omitted, body, consists, implicitly, hence, cannot, enclosing, shorter, easier, compared, traditional, functionname, were, simpler, fat, well, newly, comma, separated, pairs, wrapped, curly, bigint, symbol, basically, server, technologies, node, dynamic, interactive, websites, respectful, considerate, towards, detailed, description, request, include, clear, messages, please, ensure, contributions, adhere, counts, regardless, size, appreciate, efforts, beginners, seasoned, join, exciting, journey, together, amazing, view, folders, branches, master, fork, notification, notifications, public, requests, issues, dismiss, switched, accounts, appearance, search, pricing, talks, workshops, partners, company, forum, webinars, blog, resource, connect, premium, advanced, ons, trust, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, agent, automated, hosting, review, skip,
Text of the page (random words):
dy consists of a single expression that expression will be implicitly returned without the need for a return statement if an arrow function has only one parameter the parentheses around the parameter list can be omitted scroll to top 7 what do you mean by synthetic events synthetic events are objects that act as a cross browser wrapper around a browser s native event it has the same interface as the browser s native event including stoppropagation and preventdefault except the events work identically across all browsers scroll to top 8 what is array destructuring array destructuring is a unique feature in javascript that allows you to extract array s value into new variables for e g const arr 1 2 3 const num1 num2 num3 arr console log num1 output 1 console log num2 output 2 scroll to top 9 can we combine two arrays using any es6 operators yes using spread operators const arr1 1 2 3 4 const arr2 5 6 const arr3 arr1 arr2 console log arr3 output 1 2 3 4 5 6 scroll to top 10 why javascript is dynamically typed language javascript is a dynamically typed language because the type of a variable is determined at runtime based on the value it holds for e g var variable_one surbhi string datatype is determined at runtime var variable_two 20 number datatype is determined at runtime scroll to top 11 difference between undeclared and undefined undeclared a variable that has not been declared or doesn t exists in the code console log a output referenceerror a is not defined undefined a variable that has been declared but not assigned a value yet let a console log a output undefined scroll to top 12 difference between null and undefined null null means an empty value or a blank value it is used to represent an intentional absence of value let demo null console log demo output null undefined undefined means the variable has been declared but its value has not been assigned yet let demo console log demo output undefined scroll to top 13 what is temporal dead zone a let or const variable is said to be in a temporal dead zone tdz from the start of the block until code execution reaches the line where the variable is declared and initialized in javascript variables declared with let or const are hoisted to the top of the block scope but they enter a temporal dead zone tdz tdz for name variable starts here console log name referenceerror let name surbhi end of tdz for name scroll to top 14 what is iife iife stands for immediately invoked function expression it is a javascript function that is executed as soon as it is defined an iife is typically written as an anonymous function expression that is enclosed within a set of parentheses followed by another set of parentheses that call the function for e g function code goes here scroll to top 15 what is hoisting hoisting is a default behavior in javascript where variable and function declarations are moved to the top of the current scope variable hoisting console log a output undefined var a 10 a 10 console log a output 10 var a function hoisting demo demo console function demo console log demo console note only function declarations are hoisted not the function expressions only the declaration is hoisted not the initialization scroll to top 16 what are cookies in javascript a cookie is a piece of data stored in small text files on the user s computer by the browser cookies are set read and deleted using the document cookie property set a cookie document cookie username surbhi read a cookie let cookie_variable document cookie delete a cookie set the expiration date to a past date time document cookie username expires thu 01 jan 1970 00 00 00 utc path scroll to top 17 what is memoization memoization is a technique used in javascript to optimize the performance of functions by caching the results of expensive function calls based on their input parameters for e g if a function is called multiple times with the same input parameters then it will perform the same calculations each time by memoizing the function we can use the cached result function memoizedadd num1 num2 let cache return function a b const key num1 and num2 if key in cache console log retrieving from cache key return cache key else console log calculating result key const result num1 num2 cache key result return result const add memoizedadd console log add 2 3 calculating result 2 and 3 output 5 console log add 2 3 retrieving from cache 2 and 3 output 5 scroll to top 18 difference between var let and const in javascript there are 3 ways to declare a variable var let and const however they have some differences in their behavior and scope var let const function scoped block scoped block scoped can be re declared in the same scope can not be re declared in the same scope can not be re declared in the same scope can be updated in the same scope can be updated in the same scope can not be updated in the same scope hoisted to the top of their scope hoisted to the top but are not initialized hoisted to the top but are not initialized can be declared without being initialized can be declared without being initialized can not be declared without being initialized scroll to top 19 what is a callback function a callback function is a function that is passed as an argument to another function the function that receives the callback as an argument can then invoke the callback at any time during its execution function message callback console log hi i am message function callback callback function function callbackfun console log hey i am a callback function passing callback function as an argument to message function message callbackfun scroll to top 20 is it possible to have both local and global variables with the same name yes we can have both with the same name but when we do this the local variable will take precedence over the global variable within the scope of the function or block of code in which it is declared however outside of that scope the global variable will still be accessible using its name let a 10 function demo let a 20 console log a local scope demo console log a global scope scroll to top 21 difference between local storage and session storage local storage and session storage are web storage provided by web browsers to store data on the client side local storage data stored in local storage will persist even after the browser window is closed or the user navigates away from the website and it is available across all windows and tabs of the same origin session storage data stored in session storage will be deleted when the browser window is closed or the session ends and it is available only within the same window or tab that created the data scroll to top 22 difference between foreach and map map and foreach are array methods that can be used to iterate over an array map map method receives a function as an argument executes it once for each array element and returns a new array it is generally used when we need to modify change data because it returns a new array with the transformed data it is chainable because we can attach sort filter etc after performing a map method on an array const arr 1 2 3 4 5 let result arr map x x x console log result output 1 4 9 16 25 foreach foreach method receives a function as an argument executes it once for each array element but returns undefined it is generally used when we just need to iterate over an array it is not chainable const arr 1 2 3 4 5 let result arr foreach x x x console log result output undefined scroll to top 23 what is rest operator the rest operator was introduced in es6 ecmascript 2015 and it is represented by three dots it is used in function parameters and allows you to represent an indefinite number of arguments as an array function addition numbers return numbers reduce a b a b console log addition 1 2 3 4 output 10 it collects all the remaining arguments passed to a function into an array function profile name designation location return location console log profile surbhi se india indore m p output india indore m p scroll to top 24 what is spread operator the spread operator was introduced in es6 ecmascript 2015 and it is represented by three dots it allows an iterable to be spread into individual elements const arr 1 2 3 4 5 console log arr output 1 2 3 4 5 it can be used to copy the elements of an existing array into a new array or to concatenate arrays const arr1 1 2 3 const arr2 4 5 6 const arr3 arr1 arr2 console log arr3 output 1 2 3 4 5 6 it can be used to copy the properties of an existing object into a new object const obj1 a 1 b 2 const obj2 c 3 const obj3 obj1 obj2 console log obj3 output a 1 b 2 c 3 scroll to top 25 difference between async and defer async and defer are the attributes used with the script tag in html to load javascript files async the script is loaded in parallel to the html parsing and executed as soon as it is available i e it executes the script immediately after it is loaded it can be useful for scripts that don t depend on the dom defer the script is loaded in parallel to the html parsing and executed after the page is completely loaded i e it waits until the page has finished parsing it can be useful for scripts that depend on the dom scroll to top 26 what is nullish coalescing operator the nullish coalescing operator is a logical operator it allows you to check if a value is either null or undefined it returns its right hand side operand if its left hand side operand is null or undefined otherwise returns its left hand side operand console log null undefined foo output foo console log hello foo output hello scroll to top 27 what is the difference between a parameter and an argument parameter a parameter is a variable that is defined during a function declaration or definition it represents a value that the function or method expects to receive as an input argument an argument is the actual value that is passed to a function or method when it is called function demo parameter1 parameter2 something something demo argument1 argument2 scroll to top 28 what is a closure a closure is a combination of a function and the environment in which it was created lexical scope it gives you access to an outer function s scope from an inner function even if the outer function has returned function demo let name surbhi function displayname console log name return displayname const result demo result scroll to top 29 difference between function declaration and function expression function declaration a function declaration defines a function using the function keyword followed by the function name we can call a function declared using a function declaration before it is defined because it is hoisted to the top of its scope it does not require a variable assignment function message console log welcome message output welcome message message function expression a function expression is similar to a function declaration without the function name we can not call a function declared using a function expression before it is defined it can be stored in a variable assignment const message function console log welcome message output welcome message message scroll to top 30 what are the different ways to create an array in javascript using the array literal notation const arr 1 2 3 4 5 using the array constructor const arr new array 1 2 3 4 5 scroll to top 31 difference between window and document in javascript window object window is the topmost object it represents the browser window or tab containing a dom document it provides various properties and methods to manipulate the browser window such as window alert window confirm and window location document object document represents the html document that is being displayed in the window it provides properties and methods to manipulate the html elements in the document such as document title document getelementbyid and document createelement scroll to top 32 what is strict mode in javascript strict mode was introduced in ecmascript 5 it performs additional checks on your code to prevent certain types of bugs and errors that may go unnoticed e g using undeclared variables using duplicate property names in objects it can be enabled at either the global level or at the function level it can t be apply to block statements enclosed in braces to invoke strict mode put the exact statement use strict or use strict scroll to top 33 what are the different ways to empty an array in javascript using length property let arr 1 2 3 4 5 arr length 0 console log arr output assigning it to a new empty array let arr 1 2 3 4 5 arr console log arr output using the splice method let arr 1 2 3 4 5 arr splice 0 arr length console log arr output scroll to top 34 what is nan in javascript in javascript nan stands for not a number it is a global property that represents an unrepresentable mathematical result it is returned when a mathematical operation has no meaningful result e g dividing zero by zero multiplying dividing a non numeric value by a number etc console log 0 0 output nan console log a 1 output nan console log a 1 output nan console log math sqrt 1 output nan console log parseint blabla output nan scroll to top 35 javascript naming convention use camelcase lowercase for the first word then uppercase for subsequent words for variable and function names use pascalcase for class names uppercase for the first letter of each word use is or has as prefixes for boolean variables use uppercase for constants use descriptive and meaningful names for your variables functions and classes variable let firstname surbhi function function displayname return surbhi dighe displayname boolean let isloading false let hasname true constants let seconds 60 class class displayname constructor firstname lastname this firstname firstname this lastname lastname var name new displayname surbhi dighe scroll to top 36 difference between call apply and bind call apply and bind methods are used to attach a function into an object and call the function as if it belonged to that object call call is used to invoke a function immediately with a specified this value and allows you to pass the arguments one by one let person name surbhi function printname message console log message this name output hello surbhi printname call person hello apply apply is used to invoke a function immediately with a specified this value and allows you to pass the arguments as an array let person name surbhi function printname message console log message this name output hello surbhi printname apply person hello bind bind returns a new function which can be invoked anytime with a specified this value and allows you to pass in arguments let person name surbhi function printname message console log message this name output hello surbhi let sayhello printname bind person hello sayhello scroll to top 37 what is the use of isnan function isnan is a built in javascript function it takes a single argument and returns true if the argument is not a number otherwise it ret...
|