site Internet:Tutoriels JavaScriptteneur
(()=>{lettheme=localStore.getItem("theme");document.querySelector("html").dataset.theme=theme?theme:"light";})();JaScriptTutorial.wp-block-code{ border:0; padding:0; -webkit-text-size-adjust:100%; text-size-adjust:100%;}.wp-block-code>span{ display:block; overflow:auto;}.shcb-langue{ border:0; clip:rect(1px,1px,1px,1px); -webkit-clip-path:inset(50%); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal; word-break:normal;}.hljs{ box-sizing:border-box;}.hljs.shcb-code-table{ display:table; width:100%;}.hljs.shcb-code-table>.shcb-loc{ color:inherit; display:table-row; width:100%;}.hljs.shcb-code-table.shcb-loc>span{ display:table-cell;}.wp-block-codecode.hljs:not(.shcb-wrap-lines){ white-space:pre;}.wp-block-codecode.hljs.shcb-wrap-lines{ white-space:pre-wrap;}.hljs.shcb-line-numbers{ border-spacing:0; counter-reset:line;}.hljs.shcb-line-numbers>.shcb-loc{ counter-increment:line;}.hljs.shcb-line-numbers.shcb-loc>span{ padding-left:0.75em;}.hljs.shcb-line-numbers.shcb-loc::before{ border-right:1pxsolid#ddd; content:counter(line); display:table-cell; padding:00.75em; text-align:right; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; white-space:nowrap; width:1%;}.hljs>mark.shcb-loc{background-color:#ffffff;}/*!Thisfileisauto-generated*/.wp-block-button__link{color:#fff;background-color:#c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em+2px)calc(1.333em+2px);font-size:1.125em}.wp-block-file__button{background:#c;color:#fff;text-decoration:none}:root{--wp--preset--aspect-ratio--square:1;--wp--preset--aspect-ratio--4-3:4/3;--wp--preset--aspect-ratioTutoriels JavaScript--3-4:3/4;--wp--preset--aspect-ratio--3-2:3/2;--wp--preset--aspect-ratio--2-3:2/3;--wp--preset--aspect-ratio--16-9:16/9;--wp--preset--aspect-ratio--9-16:9/16;--wp--preset--color--black:#;--wp--preset--color--cyan-bluish-gray:#abb8c3;--wp--preset--color--white:#ffffff;--wp--preset--color--pale-pink:#f78da7;--wp--preset--color--vivid-red:#cf2e2e;--wp--preset--color--luminous-vivid-orange:#ff6900;--wp--preset--color--luminous-vivid-amber:#fcb900;--wp--preset--color--light-green-cyan:#7bdcb5;--wp--preset--color--vivid-green-cyan:#00d084;--wp--preset--color--pale-cyan-blue:#8ed1fc;--wp--preset--color--vivid-cyan-blue:#0693e3;--wp--preset--color--vivid-purple:#9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple:linear-gradient(135deg,rgba(6,147,227,1)0%,rgb(155,81,224)100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan:linear-gradient(135deg,rgb(122,220,180)0%,rgb(0,208,130)100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange:linear-gradient(135deg,rgba(252,185,0,1)0%,rgba(255,105,0,1)100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red:linear-gradient(135deg,rgba(255,105,0,1)0%,rgb(207,46,46)100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray:linear-gradient(135deg,rgb(238,238,238)0%,rgb(169,184,195)100%);--wp--preset--gradient--cool-to-warm-spectrum:linear-gradient(135deg,rgb(74,234,220)0%,rgb(151,120,209)20%,rgb(207,42,186)40%,rgb(238,44,130)60%,rgb(251,105,98)80%,rgb(254,248,76)100%);--wp--preset--gradient--blush-light-purple:linear-gradient(135deg,rgb(255,206,236)0%,rgb(152,150,240)100%);--wp--preset--gradient--blush-bordeaux:linear-gradient(135deg,rgb(254,205,165)0%,rgb(254,45,45)50%,rgb(107,0,62)100%);--wp--preset--gradient--luminous-dusk:linear-gradient(135deg,rgb(255,203,112)0%,rgb(199,81,192)50%,rgb(65,88,208)100%);--wp--preset--gradient--pale-ocean:linear-gradient(135deg,rgb(255,245,203)0%,rgb(182,227,212)50%,rgb(51,167,181)100%);--wp--preset--gradient--electric-grass:linear-gradient(135deg,rgb(202,248,128)0%,rgb(113,206,126)100%);--wp--preset--gradient--midnight:linear-gradient(135deg,rgb(2,3,129)0%,rgb(40,116,252)100%);--wp--preset--font-size--small:13px;--wp--preset--font-size--medium:20px;--wp--preset--font-size--large:36px;--wp--preset--font-size--x-large:42px;--wp--preset--spacing--20:0.44rem;--wp--preset--spacing--30:0.67rem;--wp--preset--spacing--40:1rem;--wp--preset--spacing--50:1.5rem;--wp--preset--spacing--60:2.25rem;--wp--preset--spacing--70:3.38rem;--wp--preset--spacing--80:5.06rem;--wp--preset--shadow--natural:6px6px9pxrgba(0,0,0,0.2);--wp--preset--shadow--deep:12px12px50pxrgba(0,0,0,0.4);--wp--preset--shadow--sharp:6px6px0pxrgba(0,0,0,0.2);--wp--preset--shadow--outlined:6px6px0px-3pxrgba(255,255,255,1),6px6pxrgba(0,0,0,1);--wp--preset--shadow--crisp:6px6px0pxrgba(0,0,0,1);}:where(.is-layout-flex){gap:0.5em;}:where(.is-layout-grid){gap:0.5em;}body.is-layout-flex{display:flex;}.is-layout-flex{flex-wrap:wrap;align-items:center;}.is-layout-flex>:is(*,div){margin:0;}body.is-layout-grid{display:grid;}.is-layout-grid>:is(*,div){margin:0;}:where(.wp-block-columns.is-layout-flex){gap:2em;}:where(.wp-block-columns.is-layout-grid){gap:2em;}:where(.wp-block-post-template.is-layout-flex){gap:1.25em;}:where(.wp-block-post-template.is-layout-grid){gap:1.25em;}.has-black-color{color:var(--wp--preset--color--black)!importantTutoriels JavaScript;}.has-cyan-bluish-gray-color{color:var(--wp--preset--color--cyan-bluish-gray)!important;}.has-white-color{color:var(--wp--preset--color--white)!important;}.has-pale-pink-color{color:var(--wp--preset--color--pale-pink)!important;}.has-vivid-red-color{color:var(--wp--preset--color--vivid-red)!important;}.has-luminous-vivid-orange-color{color:var(--wp--preset--color--luminous-vivid-orange)!important;}.has-luminous-vivid-amTutoriels JavaScriptber-color{color:var(--wp--preset--color--luminous-vivid-amber)!important;}.has-light-green-cyan-color{color:var(--wp--preset--color--light-green-cyan)!important;}.has-vivid-green-cyan-color{color:var(--wp--preset--color--vivid-green-cyan)!important;}.has-pale-cyan-blue-color{color:var(--wp--preset--color--pale-cyan-blue)!important;}.has-vivid-cyan-blue-color{color:var(--wp--preset--color--vivid-cyan-blue)!important;}.has-vivid-purple-color{color:var(--wp--preset--color--vivid-purple)!important;}.has-black-background-color{background-color:var(--wp--preset--color--black)!important;}.has-cyan-bluish-gray-background-color{background-color:var(--wp--preset--color--cyan-bluish-gray)!important;}.has-white-background-color{background-color:var(--wp--preset--color--white)!important;}.has-pale-pink-background-color{background-color:var(--wp--preset--color--pale-pink)!important;}.has-vivid-red-background-color{background-color:var(--wp--preset--color--vivid-red)!important;}.has-luminous-vivid-orange-background-color{background-color:var(--wp--preset--color--luminous-vivid-orange)!important;}.has-luminous-vivid-amber-background-color{background-color:var(--wp--preset--color--luminous-vivid-amber)!important;}.has-light-green-cyan-background-color{background-color:var(--wp--preset--color--light-green-cyan)!important;}.has-vivid-green-cyan-background-color{background-color:var(--wp--preset--color--vivid-green-cyan)!important;}.has-pale-cyan-blue-background-color{background-color:var(--wp--preset--color--pale-cyan-blue)!important;}.has-vivid-cyan-blue-background-color{background-color:var(--wp--preset--color--vivid-cyan-blue)!important;}.has-vivid-purple-background-color{background-color:var(--wp--preset--color--vivid-purple)!important;}.has-black-border-color{border-color:var(--wp--preset--color--black)!important;}.has-cyan-bluish-gray-border-color{border-color:var(--wp--preset--color--cyan-bluish-gray)!important;}.has-white-border-color{border-color:var(--wp--preset--color--white)!important;}.has-pale-pink-border-color{border-color:var(--wp--preset--color--pale-pink)!important;}.has-vivid-red-border-color{border-color:var(--wp--preset--color--vivid-red)!important;}.has-luminous-vivid-orange-border-color{border-color:var(--wp--preset--color--luminous-vivid-orange)!important;}.has-luminous-vivid-amber-border-color{border-color:var(--wp--preset--color--luminous-vivid-amber)!important;}.has-light-green-cyan-border-color{border-color:var(--wp--preset--color--light-green-cyan)!important;}.has-vivid-green-cyan-border-color{border-color:var(--wp--preset--color--vivid-green-cyan)!important;}.has-pale-cyan-blue-border-color{border-color:var(--wp--preset--color--pale-cyan-blue)!important;}.has-vivid-cyan-blue-border-color{border-color:var(--wp--preset--color--vivid-cyan-blue)!important;}.has-vivid-purple-border-color{border-color:var(--wp--preset--color--vivid-purple)!important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple)!important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan)!important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange)!important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background:var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red)!important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray)!important;}.has-cool-to-warm-spectrum-gradient-background{background:var(--wp--preset--gradient--cool-to-warm-spectrum)!important;}.has-blush-light-purple-gradient-background{background:var(--wp--preset--gradient--blush-light-purple)!important;}.has-blush-bordeaux-gradient-background{background:var(--wp--preset--gradient--blush-bordeaux)!important;}.has-luminous-dusk-gradient-background{background:var(--wp--preset--gradient--luminous-dusk)!important;}.has-pale-ocean-gradient-background{background:var(--wp--preset--gradient--pale-ocean)!important;}.has-electric-grass-gradient-background{background:var(--wp--preset--gradient--electric-grass)!important;}.has-midnight-gradient-background{background:var(--wp--preset--gradient--midnight)!important;}.has-small-font-size{font-size:var(--wp--preset--font-size--small)!important;}.has-medium-font-size{font-size:var(--wp--preset--font-size--medium)!important;}.has-large-font-size{font-size:var(--wp--preset--font-size--large)!important;}.has-x-large-font-size{font-size:var(--wp--preset--font-size--x-large)!important;}:where(.wp-block-post-template.is-layout-flex){gap:1.25em;}:where(.wp-block-post-template.is-layout-grid){gap:1.25em;}:where(.wp-block-columns.is-layout-flex){gap:2em;}:where(.wp-block-columns.is-layout-grid){gap:2em;}:root:where(.wp-block-pullquote){font-size:1.5em;line-height:1.6;}window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','G-YMXGX0J1SY');.left-column{border-right:none;}.sidebar{border-left:none;}.iphone-video{ width:350px; }SkiptocontentHomeES6AdvancedJaScriptArrayMethodsJaScriptStringMethodsRegularExpressionsESNextJSBOMJSDOMWebAPIReactReactNativeNode.jsTypeScripttry{fetch(newRequest("pead2.googlesyndication.com/pead/js/adsbygoogle.js",{method:'HEAD',mode:'no-cors'})).then(function(response){returntrue;}).catch(function(e){varcarbonScript=document.createElement("script");carbonScript.src="//cdn.carbonads.com/carbon.js?serve=CE7IC2QE&placement=";carbonScript.id="_carbonads_js";document.getElementById("carbon-block").appendChild(carbonScript);});}catch(error){console.log(error);}JaScriptTutorialWelcometotheJaScriptTutorial.netwebsite!ThisJaScriptTutorialhelpsyoulearntheJaScriptprogramminglanguefromscratchquicklyandeffectively.Ifyoufindyourselfinanyofthefollowingsituations:UnsureaboutwheretostartlearningJaScript.TiredofsimplycopyingandpastingJaScriptcodewithoutreallyunderstandinghowitworks.Feelstucktoaddricherandmorecompellingfeaturestoyourwebsitesandwebapplicationsbecauseyoudon8217;tknowhowtogetmuchoutofJaScript.JaScriptTutorial.netisagoodplacetostart.Section1.GettingstartedWhatisJaScript?8211;introduceyoutoJaScriptanditshistory.InstallaJaScriptsourcecodeeditor8211;learnhowtoinstalltheVisualStudioCodeforeditingJaScriptcode.MeettheConsoleTabofWebDevelopmentTools8211;provideyouwithabasicintroductiontotheConsolewindowonthewebbrowsers.JaScriptHelloWorld8211;learnhowtoexecutethefirstJaScriptcodethatdisplaysthefamous"Hello,World!"messe.Section2.FundamentalsSyntax8211;explaintheJaScriptsyntax,includingwhitespace,statements,identifiers,keywords,expressions,andcomments.Variables8211;showyouhowtodeclarevariables.Datatypes8211;introducetoyoutheJaScriptdatatypes,includingprimitiveandreferencetypes.Number8211;learnhowJaScriptusestheNumbertypetorepresenttheintegerandfloating-pointnumbers.NumericSeparator–showyouhowtomakethenumbersmorereadablebyusingunderscoresasnumericseparators.Octal&binaryliterals8211;providesupportforbinaryliteralsandchangethewaytorepresentoctalliterals.Boolean8211;introduceyoutotheBooleantype.String8211;learnaboutstringprimitivetypeandsomebasicstringoperations.Object8211;introduceyoutotheobjecttype.Primitivevs.referencevalues8211;understandtwovaluetypesinJaScript,includingprimitiveandreferencevalues,andthedifferencesbetweenthem.Array8211;introduceyoutotheArraytypeandhowtomanipulatearrayelements.Section3.OperatorsArithmeticoperators8211;introducetoyouthearithmeticoperatorsincludingaddition(+),subtraction(-),multiplication(*),anddivision(/).Remainderoperator8211;showyouhowtousetheremainderoperator(%)togettheremainderleftoverwhenonevalueisdividedbyanothervalue.Assignmentoperators8211;guideyouonhowtouseassignmentoperators(=)toassignavalueoranexpressiontoavariable.Unaryoperators8211;learnhowtouseunaryoperators.Comparisonoperators8211;showyouhowtousecomparisonoperatorstocomparetwovalues.Logicaloperators8211;learnhowtousethelogicaloperators:NOT(!),AND(&&),andOR(||).Section4.ControlflowStatementsif8211;showyouhowtousetheifstatementtoexecuteablockifaconditionistrue.if8230;else8211;learnhowtoexecuteablockofcodebasedonaspecifiedcondition.if8230;else8230;if8211;checkmultipleconditionsandexecuteablock.Ternaryoperators8211;showyouhowtomakeashortcutfortheifstatement(?:).switch8211;showyouhowtoreplacemultipleifstatementswhencomparingavaluewithmultiplevariantsbyusingtheswitchstatement.while8211;learnhowtoperformapre-testloopthatrepeatedlyexecutesablockofcodeaslongasaspecifiedconditionistrue.do8230;while8211;showyouhowtocarryapost-testloopthatexecutesablockofcoderepeatedlyuntilaspecifiedconditionisfalse.forloop8211;learnhowtorepeatedlyexecuteablockofcodebasedonvariousoptions.break8211;learnhowtoprematurelyterminatealoop.continue8211;showyouhowtoskipthecurrentiterationofaloopandjumptothenextone.Commaoperator8211;guideyouonhowtousethecommaoperatorinaforlooptoupdatemultiplevariablesatonce.Section5.FunctionsFunctions8211;introduceyoutofunctionsinJaScript.Functionsarefirst-classcitizens8211;learnhowtostorefunctionsinthevariables,passfunctionsintootherfunctionsasarguments,andreturnfunctionsasvalues.AnonymousFunctions8211;learnaboutanonymousfunctionswhicharethefunctionswithoutnames.Pass-by-value8211;understandhowpass-by-valueworksinJaScript.Recursivefunction8211;learnhowtodefinerecursivefunctions.DefaultParameters8211;showyouhowtodefinedefaultparametersforfunctions.Section6.Objects&PrototypesObjectMethods8211;introduceyoutothemethodsofanobject.Constructorfunctions8211;showyouhowtouseconstructorfunctionstodefinecustomtypesinJaScript.Prototype8211;learnhowtheprototypeworksinJaScript.Constructor/Prototypepattern8211;showyouhowtocombinetheconstructorfunctionandprototypepatterntodefinecustomtypes.Prototypalinheritance8211;understandprototypalinheritanceinJaScript.WhatisthisinJaScript8211;understandthethisvalueandhowitworksinJaScript.globalThis–provideastandardwaytoaccesstheglobalobjectacrossenvironments.ObjectProperties8211;diveintotheobject8217;spropertiesandtheirattributes.for8230;inloop8211;learnhowtoiterateoverpropertiesofanobjectusingthefor...inloop.EnumerableProperties8211;learnmoreabouttheenumerableproperties.OwnProperties8211;understandtheownandinheritedproperties.Factoryfunctions8211;learnaboutthefactoryfunctionswhicharefunctionsthatreturnobjects.ObjectDestructuring8211;learnhowtoassignpropertiesofanobjecttovariables.Optionalchainingoperator(?.)–simplifythewaytoaccessapropertylocateddeepwithinachainofconnectedobjectswithouthingtocheckifeachreferenceinthechainisnullorundefined.Objectliteralsyntaxextensions8211;provideanewwaytodefineobjectliteral.Section7.ClassesClass8211;introduceyoutotheES6classsyntaxandhowtodeclareaclass.GettersandSetters8211;definethegettersandsettersforaclassusingthegetandsetkeywords.ClassExpression8211;learnanalternativewaytodefineanewclassusingaclassexpression.Computedproperty8211;explainthecomputedpropertyanditspracticalapplication.Inheritance8211;showyouhowtoextendaclassusingtheextendsandsuperkeywords.new.target8211;introduceyoutothenew.targetmetaproperty.Staticmethods8211;guideyouonhowtodefinemethodsassociatedwithaclass,notinstancesofthatclass.StaticProperties8211;showyouhowtodefinestaticpropertiessharedbyallinstancesofaclass.PrivateFields–learnhowtodefineprivatefieldsinaclass.PrivateMethods–showyouhowtodefineprivatemethodsinaclass.Section8.AdvancedFunctionsFunctiontype8211;introduceyoutotheFunctiontypeanditspropertiesandmethods.call()8211;understandthecall()methodandlearnhowtouseiteffectively.apply()8211;learnhowtousetheapply()methodeffectively.bind()8211;understandthebind()methodandhowtoapplyiteffectively.Closure8211;understandtheclosuresinJaScript.ImmediatelyInvokedFunctionExpression(IIFE)8211;learnaboutimmediatelyinvokedfunctionexpressions(IIFE).Returningmultiplevalues8211;guideyouonhowtoreturnmultiplevaluesfromafunction.Arrowfunctions8211;introduceyoutothearrowfunctions(=>)Arrowfunctions:whenyoushouldnotuse8211;learnwhennottousearrowfunctions.Restparameter8211;introduceyoutotherestparametersandhowtousethemeffectively.Callbackfunctions8211;introduceyoutothecallbackfunctionsandlearnhowtousethecallbackstohandleasynchronousoperations.Section9.Promises&Async/AwaitPromises8211;learnaboutJascriptPromises,whattheyare,andhowtousethemeffectively.Promisechaining8211;showyouhowtoexecutemultipleasynchronousoperationsinsequence.Promisecomposition:Promise.all()&Promise.race()8211;learnhowtocomposeanewpromiseoutofseveralpromises.Promise.any()–learnhowtousetheJaScriptPromise.any()methodtoreturnthefirstPromisethatfulfills.Promise.allSettled()–acceptalistofpromisesandreturnsanewpromisethatresolvestoanarrayofvalues,whichweresettled(eitherresolvedorrejected)bytheinputpromises.Promise.prototype.finally()–executeapieceofcodewhenthepromiseissettled,regardlessofitsoutcome.Promiseerrorhandling8211;guideyouonhowtohandleerrorsinpromises.async/await–writeasynchronouscodeinaclearersyntax.Promise.withResolvers()8211;returnanewPromisewithresolveandrejectfunctions.Section10.Iterators&GeneratorsIterators8211;introduceyoutotheiterationanditeratorprotocols.Generators8211;developfunctionsthatcanpausemidwayandthencontinuefromwheretheypaused.yield8211;diveintohowtousetheyieldkeywordingenerators.for8230;of8211;learnhowtousethefor...oflooptoiterateoverelementsofaniterableobject.Asynchronousiterators–learnhowtouseasynchronousiteratorstoaccessasynchronousdatasourcessequentially.Asyncgenerators–showyouhowtocreateanasyncgenerator.Section11.ModulesModules8211;learnhowtowritemodularJaScriptcode.Export8211;explainindetailhowtoexportvariables,functions,andclassesfromamodule.Import8211;guideyouonhowtoimportdefaultexportsandnamedexportsfromanothermodule.Dynamicimport–showyouhowtoimportamoduledynamicallyviathefunction-likeobjectimport().Top-levelawait–explainthetop-levelawaitmoduleanditsusecases.Section12.SymbolSymbol8211;introduceyoutoanewprimitivetypecalledsymbolinES6Section13.CollectionsMap8211;introduceyoutotheMaptypethatholdsacollectionofkey-valuepairs.Set8211;learnhowtousetheSettypethatholdsacollectionofuniquevalues.Section14.Errorhandlingtry8230;catch8211;showyouhowtohandleexceptionsgracefully.try8230;catch8230;finally8211;learnhowtocatchexceptionsandexecuteablockwhethertheexceptionsoccurornot.throw8211;showyouhowtothrowanexception.Optionalcatchbinding–omittheexceptionvariableinthecatchblock.Section15.JaScriptvar,let,andconstlet8211;declareblock-scopedvariablesusingtheletkeyword.letvs.var8211;understandthedifferencesbetweenletandvar.const8211;defineconstantsusingtheconstkeyword.Section16.Proxy&ReflectionProxy8211;learnhowtousetheproxyobjectthatwrapsanotherobject(target)andinterceptsthefundamentaloperationsofthetargetobject.Reflection8211;showyouhowtouseES6ReflectionAPItomanipulatevariables,properties,andmethodsofobjectsatruntime.Section17.JaScriptRuntimeExecutionContexts8211;understandexecutioncontextsincludingglobalandfunctionexecutioncontexts.CallStack8211;understandthecallstack.EventLoop8211;showyouhowJaScripthandlesasynchronousoperationsusingtheeventloop.Hoisting8211;learnhowhoistingworksinJaScript.Variablescopes8211;introduceyoutothevariablescopes.Section18.PrimitiveWrapperTypesPrimitivewrappertypes8211;learnhowprimitivewrappertypesworkinJaScript.Boolean8211;introduceyoutotheBooleanprimitivewrappertype.Number8211;learnabouttheNumberprimitivewrappertype.BigInt–introducetheBigInttypethatrepresentsthebigintegers.Stringtype8211;introduceyoutotheStringtype.Section19.AdvancedOperatorsLogicalassignmentoperators–introducetoyouthelogicalassignmentoperators,including||=,&&=,and??=Nullishcoalescingoperator(??)–accepttwovaluesandreturnthesecondvalueifthefirstoneisnullorundefined.Exponentiationoperator8211;introduceyoutotheexponentiationoperator(**)thatcalculatesabasetotheexponentpower,whichissimilartoMath.pow()method.Searchfor:GettingStartedWhatisJaScriptInstallaJaScriptCodeEditorMeettheConsoleTabofDevtoolsJaScriptHelloWorldJaScriptFundamentalsSyntaxVariablesDataTypesNumberNumericSeparatorBooleanStringObjectPrimitivevs.ReferenceValuesArrayJaScriptOperatorsArithmeticOperatorsRemainderOperatorAssignmentOperatorsUnaryOperatorsComparisonOperatorsLogicalOperatorsControlFlowififelseifelseifTernaryOperator(:?)switchcasewhiledowhileforbreakcontinueCommaOperatorJaScriptFunctionsFunctionsFunctionsareFirst-ClassCitizensAnonymousFunctionsUnderstandingPass-By-ValueinJaScriptRecursiveFunctionsDefaultParametersJaScriptObjectsObjectMethodsConstructorFunctionsPrototypeConstructor/PrototypePatternPrototypalInheritanceJaScriptthisglobalThisObjectPropertiesfor…inLoopEnumerablePropertiesOwnPropertiesFactoryFunctionsObjectDestructuringOptionalChainingOperatorObjectLiteralSyntaxExtensionsClassesClassGetters038;SettersClassExpressionsComputedPropertiesInheritancenew.targetStaticMethodsStaticPropertiesPrivateFieldsPrivateMethodsinstanceofOperatorAdvancedFunctionsFunctionTypeThecall()MethodTheapply()methodThebind()MethodClosuresImmediatelyInvokedFunctionExpression(IIFE)ReturningMultipleValuesArrowFunctionsArrowFunctions:Do038;Don8217;tRestParametersCallbackPromises038;Async/AwaitPromisesPromiseChainingPromise.all()Promise.race()Promise.any()Promise.allSettled()Promise.prototype.finally()PromiseErrorHandlingasync/awaitPromise.withResolvers()JaScriptModulesModulesDynamicImportTop-levelAwaitModulesJascriptErrorHandlingtry…catchtry…catch…finallyThrowanExceptionOptionalcatchBindingJaScriptRuntimeExecutionContextCallStackEventLoopHoistingVariableScopesPrimitiveWrapperTypesPrimitiveWrapperTypesBooleanNumberBigIntStringMoreJaScriptOperatorsFalsyNullishCoalescingOperatorLogicalAssignmentOperatorsExponentiationOperatorAboutJaScriptTutorialTheJaScriptTutorialwebsitehelpsyoulearnJaScriptprogrammingfromscratchquicklyandeffectively.ReferencesArrayMethodsStringMethodsRegularExpressionsJaScriptSnippetsSiteLinksDonation❤️AboutContactPrivacyPolicy©2009-PresentbyJaScriptTutorialWebsite.AllRightReserved.