[{"data":1,"prerenderedAt":1230},["ShallowReactive",2],{"navigation_docs":3,"-essentials-challenge-1":44,"-essentials-challenge-1-surround":1225},[4,20],{"title":5,"path":6,"stem":7,"children":8,"page":19},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"JavaScript","\u002Fgetting-started\u002Fjavascript","1.getting-started\u002F2.javascript","i-simple-icons-javascript",false,{"title":21,"path":22,"stem":23,"children":24,"page":19},"Essentials","\u002Fessentials","2.essentials",[25,30,35,40],{"title":26,"path":27,"stem":28,"icon":29},"Variables","\u002Fessentials\u002Fvariables","2.essentials\u002F1.variables","i-lucide-variable",{"title":31,"path":32,"stem":33,"icon":34},"Datatypes","\u002Fessentials\u002Fdata-types","2.essentials\u002F2.data-types","i-carbon-data-set",{"title":36,"path":37,"stem":38,"icon":39},"Challenge 1","\u002Fessentials\u002Fchallenge-1","2.essentials\u002F3.challenge-1","i-lucide-goal",{"title":41,"path":42,"stem":43,"icon":34},"Operators","\u002Fessentials\u002Foperators","2.essentials\u002F4.operators",{"id":45,"title":36,"body":46,"description":1218,"extension":1219,"links":1220,"meta":1221,"navigation":1222,"path":37,"seo":1223,"stem":38,"__hash__":1224},"docs\u002F2.essentials\u002F3.challenge-1.md",{"type":47,"value":48,"toc":1211},"minimark",[49,54,58,486,490,493,527,560,564,571,575,651,843,847,850,946,1057,1061,1064,1116,1207],[50,51,53],"h2",{"id":52},"_1","#1",[55,56,57],"p",{},"In the dev tools console, figure out how to do the following:",[59,60,62,76,116,126,155,166,190,200,224,233,254,268,297,321,380,387,412,421,448,454],"steps",{"level":61},"4",[63,64,66,67,71,72,75],"h4",{"id":65},"create-a-boolean-variable-called-myboolean-and-set-it-to-true","Create a boolean variable called ",[68,69,70],"code",{},"myBoolean"," and set it to ",[68,73,74],{},"true",".",[77,78,79],"accordion",{},[80,81,83],"accordion-item",{"label":82},"Show answer",[84,85,90],"pre",{"className":86,"code":87,"language":88,"meta":89,"style":89},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const myBoolean = true;\n","js","",[68,91,92],{"__ignoreMap":89},[93,94,97,101,105,109,113],"span",{"class":95,"line":96},"line",1,[93,98,100],{"class":99},"spNyl","const",[93,102,104],{"class":103},"sTEyZ"," myBoolean ",[93,106,108],{"class":107},"sMK4o","=",[93,110,112],{"class":111},"sfNiH"," true",[93,114,115],{"class":107},";\n",[63,117,119,120,71,123,75],{"id":118},"create-a-string-variable-called-mystring-and-set-it-to-hello-world","Create a string variable called ",[68,121,122],{},"myString",[68,124,125],{},"hello world",[77,127,128],{},[80,129,130],{"label":82},[84,131,133],{"className":86,"code":132,"language":88,"meta":89,"style":89},"const myString = 'hello world';\n",[68,134,135],{"__ignoreMap":89},[93,136,137,139,142,144,147,150,153],{"class":95,"line":96},[93,138,100],{"class":99},[93,140,141],{"class":103}," myString ",[93,143,108],{"class":107},[93,145,146],{"class":107}," '",[93,148,125],{"class":149},"sfazB",[93,151,152],{"class":107},"'",[93,154,115],{"class":107},[63,156,158,159,162,163,75],{"id":157},"create-a-number-variable-called-firstnumber-and-set-it-equal-to-20","Create a number variable called ",[68,160,161],{},"firstNumber"," and set it equal to ",[68,164,165],{},"20",[77,167,168],{},[80,169,170],{"label":82},[84,171,173],{"className":86,"code":172,"language":88,"meta":89,"style":89},"const firstNumber = 20;\n",[68,174,175],{"__ignoreMap":89},[93,176,177,179,182,184,188],{"class":95,"line":96},[93,178,100],{"class":99},[93,180,181],{"class":103}," firstNumber ",[93,183,108],{"class":107},[93,185,187],{"class":186},"sbssI"," 20",[93,189,115],{"class":107},[63,191,193,194,162,197,75],{"id":192},"create-another-number-variable-called-secondnumber-and-set-it-equal-to-40","Create another number variable called ",[68,195,196],{},"secondNumber",[68,198,199],{},"40",[77,201,202],{},[80,203,204],{"label":82},[84,205,207],{"className":86,"code":206,"language":88,"meta":89,"style":89},"let secondNumber = 40;\n",[68,208,209],{"__ignoreMap":89},[93,210,211,214,217,219,222],{"class":95,"line":96},[93,212,213],{"class":99},"let",[93,215,216],{"class":103}," secondNumber ",[93,218,108],{"class":107},[93,220,221],{"class":186}," 40",[93,223,115],{"class":107},[63,225,227,228,162,230,75],{"id":226},"re-assign-secondnumber-and-set-it-equal-to-80","Re-assign ",[68,229,196],{},[68,231,232],{},"80",[77,234,235],{},[80,236,237],{"label":82},[84,238,240],{"className":86,"code":239,"language":88,"meta":89,"style":89},"secondNumber = 80;\n",[68,241,242],{"__ignoreMap":89},[93,243,244,247,249,252],{"class":95,"line":96},[93,245,246],{"class":103},"secondNumber ",[93,248,108],{"class":107},[93,250,251],{"class":186}," 80",[93,253,115],{"class":107},[63,255,257,258,261,262,264,265,267],{"id":256},"create-an-array-called-myarray-and-put-myboolean-at-index-0-and-mystring-at-index-1","Create an array called ",[68,259,260],{},"myarray"," and put ",[68,263,70],{}," at index 0, and ",[68,266,122],{}," at index 1.",[77,269,270],{},[80,271,272],{"label":82},[84,273,275],{"className":86,"code":274,"language":88,"meta":89,"style":89},"const myArray = [ myBoolean, myString ];\n",[68,276,277],{"__ignoreMap":89},[93,278,279,281,284,286,289,292,295],{"class":95,"line":96},[93,280,100],{"class":99},[93,282,283],{"class":103}," myArray ",[93,285,108],{"class":107},[93,287,288],{"class":103}," [ myBoolean",[93,290,291],{"class":107},",",[93,293,294],{"class":103}," myString ]",[93,296,115],{"class":107},[63,298,300,301,304,305,308,309,312,313,315,316,308,318,75],{"id":299},"create-an-object-called-myobject-and-assign-myarray-to-a-property-called-firstproperty-and-the-sum-of-firstnumber-and-secondnumber-to-a-property-called-sumproperty","Create an object called ",[68,302,303],{},"myObject"," and assign ",[68,306,307],{},"myArray"," to a property called ",[68,310,311],{},"firstProperty",", and the sum of ",[68,314,161],{}," and ",[68,317,196],{},[68,319,320],{},"sumProperty",[77,322,323],{},[80,324,325],{"label":82},[84,326,328],{"className":86,"code":327,"language":88,"meta":89,"style":89},"const myObject = {\n  firstProperty: myArray,\n  sumProperty: firstNumber + secondNumber\n};\n",[68,329,330,342,358,374],{"__ignoreMap":89},[93,331,332,334,337,339],{"class":95,"line":96},[93,333,100],{"class":99},[93,335,336],{"class":103}," myObject ",[93,338,108],{"class":107},[93,340,341],{"class":107}," {\n",[93,343,345,349,352,355],{"class":95,"line":344},2,[93,346,348],{"class":347},"swJcz","  firstProperty",[93,350,351],{"class":107},":",[93,353,354],{"class":103}," myArray",[93,356,357],{"class":107},",\n",[93,359,361,364,366,368,371],{"class":95,"line":360},3,[93,362,363],{"class":347},"  sumProperty",[93,365,351],{"class":107},[93,367,181],{"class":103},[93,369,370],{"class":107},"+",[93,372,373],{"class":103}," secondNumber\n",[93,375,377],{"class":95,"line":376},4,[93,378,379],{"class":107},"};\n",[63,381,383,384,386],{"id":382},"print-myobject-to-the-console","Print ",[68,385,303],{}," to the console.",[77,388,389],{},[80,390,391],{"label":82},[84,392,394],{"className":86,"code":393,"language":88,"meta":89,"style":89},"console.log(myObject);\n",[68,395,396],{"__ignoreMap":89},[93,397,398,401,403,407,410],{"class":95,"line":96},[93,399,400],{"class":103},"console",[93,402,75],{"class":107},[93,404,406],{"class":405},"s2Zo4","log",[93,408,409],{"class":103},"(myObject)",[93,411,115],{"class":107},[63,413,415,416,418,419,386],{"id":414},"print-the-sumproperty-of-myobject-to-the-console","Print the ",[68,417,320],{}," of ",[68,420,303],{},[77,422,423],{},[80,424,425],{"label":82},[84,426,428],{"className":86,"code":427,"language":88,"meta":89,"style":89},"console.log(myObject.sumProperty);\n",[68,429,430],{"__ignoreMap":89},[93,431,432,434,436,438,441,443,446],{"class":95,"line":96},[93,433,400],{"class":103},[93,435,75],{"class":107},[93,437,406],{"class":405},[93,439,440],{"class":103},"(myObject",[93,442,75],{"class":107},[93,444,445],{"class":103},"sumProperty)",[93,447,115],{"class":107},[63,449,451,452,75],{"id":450},"print-the-value-at-index-1-of-firstproperty","Print the value at index 1 of ",[68,453,311],{},[77,455,456],{},[80,457,458],{"label":82},[84,459,461],{"className":86,"code":460,"language":88,"meta":89,"style":89},"console.log(myObject.firstProperty[1]);\n",[68,462,463],{"__ignoreMap":89},[93,464,465,467,469,471,473,475,478,481,484],{"class":95,"line":96},[93,466,400],{"class":103},[93,468,75],{"class":107},[93,470,406],{"class":405},[93,472,440],{"class":103},[93,474,75],{"class":107},[93,476,477],{"class":103},"firstProperty[",[93,479,480],{"class":186},"1",[93,482,483],{"class":103},"])",[93,485,115],{"class":107},[50,487,489],{"id":488},"_2","#2",[55,491,492],{},"There are three things wrong with this code. Find them and explain why they are wrong.",[84,494,496],{"className":86,"code":495,"language":88,"meta":89,"style":89},"const some Number = 20;\n\nsomeNumber = 50\n",[68,497,498,511,517],{"__ignoreMap":89},[93,499,500,502,505,507,509],{"class":95,"line":96},[93,501,100],{"class":99},[93,503,504],{"class":103}," some Number ",[93,506,108],{"class":107},[93,508,187],{"class":186},[93,510,115],{"class":107},[93,512,513],{"class":95,"line":344},[93,514,516],{"emptyLinePlaceholder":515},true,"\n",[93,518,519,522,524],{"class":95,"line":360},[93,520,521],{"class":103},"someNumber ",[93,523,108],{"class":107},[93,525,526],{"class":186}," 50\n",[77,528,529],{},[80,530,531],{"label":82},[532,533,534,545,553],"ol",{},[535,536,537,538,541,542,75],"li",{},"The variable is invalid. The name of the variable can't be seperated with space. So it should be ",[68,539,540],{},"someNumber",", not ",[68,543,544],{},"some Number",[535,546,547,548,550,551,75],{},"After using ",[68,549,100],{}," to assign a value, that value can't be changed. If we want to re-assign the value of the variable, we should use ",[68,552,213],{},[535,554,555,556,559],{},"The line ",[68,557,558],{},"someNumber = 50"," is missing a semi-colon at the end.",[50,561,563],{"id":562},"_3","#3",[55,565,566,567,570],{},"What does ",[68,568,569],{},"resultVariable"," equal? What data type is it?",[572,573,574],"tip",{},"We haven't covered everything here in detail yet, but research this and try to figure it out.",[84,576,578],{"className":86,"code":577,"language":88,"meta":89,"style":89},"const variable1 = 20;\nconst variable2 = '40';\n\nconst resultVariable = variable1 + variable2;\n\nconsole.log(resultVariable);\n",[68,579,580,593,610,614,632,637],{"__ignoreMap":89},[93,581,582,584,587,589,591],{"class":95,"line":96},[93,583,100],{"class":99},[93,585,586],{"class":103}," variable1 ",[93,588,108],{"class":107},[93,590,187],{"class":186},[93,592,115],{"class":107},[93,594,595,597,600,602,604,606,608],{"class":95,"line":344},[93,596,100],{"class":99},[93,598,599],{"class":103}," variable2 ",[93,601,108],{"class":107},[93,603,146],{"class":107},[93,605,199],{"class":149},[93,607,152],{"class":107},[93,609,115],{"class":107},[93,611,612],{"class":95,"line":360},[93,613,516],{"emptyLinePlaceholder":515},[93,615,616,618,621,623,625,627,630],{"class":95,"line":376},[93,617,100],{"class":99},[93,619,620],{"class":103}," resultVariable ",[93,622,108],{"class":107},[93,624,586],{"class":103},[93,626,370],{"class":107},[93,628,629],{"class":103}," variable2",[93,631,115],{"class":107},[93,633,635],{"class":95,"line":634},5,[93,636,516],{"emptyLinePlaceholder":515},[93,638,640,642,644,646,649],{"class":95,"line":639},6,[93,641,400],{"class":103},[93,643,75],{"class":107},[93,645,406],{"class":405},[93,647,648],{"class":103},"(resultVariable)",[93,650,115],{"class":107},[77,652,653],{},[80,654,655,661,664,683,686,689,692,695,753,756,759,836],{"label":82},[55,656,657,658,660],{},"The ",[68,659,569],{}," will print \"2040\", and it is a string.",[55,662,663],{},"You can verify this by executing the following code in the console:",[84,665,667],{"className":86,"code":666,"language":88,"meta":89,"style":89},"\u002F\u002F This will return \"string\", which tells us that the variable is a string data type\ntypeof resultVariable\n",[68,668,669,675],{"__ignoreMap":89},[93,670,671],{"class":95,"line":96},[93,672,674],{"class":673},"sHwdD","\u002F\u002F This will return \"string\", which tells us that the variable is a string data type\n",[93,676,677,680],{"class":95,"line":344},[93,678,679],{"class":107},"typeof",[93,681,682],{"class":103}," resultVariable\n",[55,684,685],{},"The reason for this is because JavaScript is a \"weakly typed\" language. In this case, we are trying to add a number and a string together. In some programming languages like Python which are \"strongly typed\", you would get an error trying to do this. But since JavaScript is \"weakly typed\", it allows you to do operations with multiple variable types at once.",[55,687,688],{},"This leads us to the second part of this solution. Since JavaScript allows you to add a number and a string together, you might ask–why does it end up as a string rather than a number?",[55,690,691],{},"This is where the concept of \"implicit type coercion\" comes in. Since we are not explicitly declaring each variable's type (static typing), JavaScript has to figure it out when the code runs. In this case, when you add a string and a number together, it automatically becomes a string, and that is just a rule of JavaScript.",[55,693,694],{},"Imagine what would happen with this code:",[84,696,698],{"className":86,"code":697,"language":88,"meta":89,"style":89},"const stringVariable = 'some value here';\nconst numberVariable = 20;\n\nconsole.log(stringVariable + numberVariable);\n",[68,699,700,718,731,735],{"__ignoreMap":89},[93,701,702,704,707,709,711,714,716],{"class":95,"line":96},[93,703,100],{"class":99},[93,705,706],{"class":103}," stringVariable ",[93,708,108],{"class":107},[93,710,146],{"class":107},[93,712,713],{"class":149},"some value here",[93,715,152],{"class":107},[93,717,115],{"class":107},[93,719,720,722,725,727,729],{"class":95,"line":344},[93,721,100],{"class":99},[93,723,724],{"class":103}," numberVariable ",[93,726,108],{"class":107},[93,728,187],{"class":186},[93,730,115],{"class":107},[93,732,733],{"class":95,"line":360},[93,734,516],{"emptyLinePlaceholder":515},[93,736,737,739,741,743,746,748,751],{"class":95,"line":376},[93,738,400],{"class":103},[93,740,75],{"class":107},[93,742,406],{"class":405},[93,744,745],{"class":103},"(stringVariable ",[93,747,370],{"class":107},[93,749,750],{"class":103}," numberVariable)",[93,752,115],{"class":107},[55,754,755],{},"Here, it wouldn't make much sense to convert the result to a number because you can't add these two values! In our first example, you could have converted variable2 into a number and then added them together, but here, you can't convert 'some value here' into a number.",[55,757,758],{},"Here's how we could have turned the original result into a number:",[84,760,762],{"className":86,"code":761,"language":88,"meta":89,"style":89},"const variable1 = 20;\nconst variable2 = '40';\n\nconst resultVariable = variable1 + Number(variable2);\n\nconsole.log(resultVariable); \u002F\u002F Prints 60, and is a number\n",[68,763,764,776,792,796,816,820],{"__ignoreMap":89},[93,765,766,768,770,772,774],{"class":95,"line":96},[93,767,100],{"class":99},[93,769,586],{"class":103},[93,771,108],{"class":107},[93,773,187],{"class":186},[93,775,115],{"class":107},[93,777,778,780,782,784,786,788,790],{"class":95,"line":344},[93,779,100],{"class":99},[93,781,599],{"class":103},[93,783,108],{"class":107},[93,785,146],{"class":107},[93,787,199],{"class":149},[93,789,152],{"class":107},[93,791,115],{"class":107},[93,793,794],{"class":95,"line":360},[93,795,516],{"emptyLinePlaceholder":515},[93,797,798,800,802,804,806,808,811,814],{"class":95,"line":376},[93,799,100],{"class":99},[93,801,620],{"class":103},[93,803,108],{"class":107},[93,805,586],{"class":103},[93,807,370],{"class":107},[93,809,810],{"class":405}," Number",[93,812,813],{"class":103},"(variable2)",[93,815,115],{"class":107},[93,817,818],{"class":95,"line":634},[93,819,516],{"emptyLinePlaceholder":515},[93,821,822,824,826,828,830,833],{"class":95,"line":639},[93,823,400],{"class":103},[93,825,75],{"class":107},[93,827,406],{"class":405},[93,829,648],{"class":103},[93,831,832],{"class":107},";",[93,834,835],{"class":673}," \u002F\u002F Prints 60, and is a number\n",[55,837,838,839,842],{},"By using JavaScript's built-in ",[68,840,841],{},"Number()"," function, we can convert a string to a number",[50,844,846],{"id":845},"_4","#4",[55,848,849],{},"Why is this code invalid? Edit this until it's valid.",[84,851,853],{"className":86,"code":852,"language":88,"meta":89,"style":89},"const objectVariable = {\n  property1: 'i am property 1';\n  property2: 'i am property 2';\n  property3: [20, 30, 40];\n};\n\nconsole.log(objectVariable.property3[2])\n",[68,854,855,866,882,896,915,919,923],{"__ignoreMap":89},[93,856,857,859,862,864],{"class":95,"line":96},[93,858,100],{"class":99},[93,860,861],{"class":103}," objectVariable ",[93,863,108],{"class":107},[93,865,341],{"class":107},[93,867,868,871,873,875,878,880],{"class":95,"line":344},[93,869,870],{"class":347},"  property1",[93,872,351],{"class":107},[93,874,146],{"class":107},[93,876,877],{"class":149},"i am property 1",[93,879,152],{"class":107},[93,881,115],{"class":103},[93,883,884,887,889,892,894],{"class":95,"line":360},[93,885,886],{"class":103},"  property2: ",[93,888,152],{"class":107},[93,890,891],{"class":149},"i am property 2",[93,893,152],{"class":107},[93,895,115],{"class":103},[93,897,898,901,903,905,908,910,912],{"class":95,"line":376},[93,899,900],{"class":103},"  property3: [",[93,902,165],{"class":186},[93,904,291],{"class":107},[93,906,907],{"class":186}," 30",[93,909,291],{"class":107},[93,911,221],{"class":186},[93,913,914],{"class":103},"];\n",[93,916,917],{"class":95,"line":634},[93,918,379],{"class":107},[93,920,921],{"class":95,"line":639},[93,922,516],{"emptyLinePlaceholder":515},[93,924,926,928,930,932,935,937,940,943],{"class":95,"line":925},7,[93,927,400],{"class":103},[93,929,75],{"class":107},[93,931,406],{"class":405},[93,933,934],{"class":103},"(objectVariable",[93,936,75],{"class":107},[93,938,939],{"class":103},"property3[",[93,941,942],{"class":186},"2",[93,944,945],{"class":103},"])\n",[77,947,948],{},[80,949,950,956,959,962],{"label":82},[55,951,952,953,955],{},"The code above is invalid because it contains semi-colons ",[68,954,832],{}," in the wrong places.",[55,957,958],{},"When creating objects, you need to place a comma after each object, NOT a semi-colon.",[55,960,961],{},"Here is the fixed program that will properly run in your Console.",[84,963,965],{"className":86,"code":964,"language":88,"meta":89,"style":89},"const objectVariable = {\n  property1: 'i am property 1',\n  property2: 'i am property 2',\n  property3: [20, 30, 40]\n};\n\nconsole.log(objectVariable.property3[2]);\n",[68,966,967,977,991,1006,1029,1033,1037],{"__ignoreMap":89},[93,968,969,971,973,975],{"class":95,"line":96},[93,970,100],{"class":99},[93,972,861],{"class":103},[93,974,108],{"class":107},[93,976,341],{"class":107},[93,978,979,981,983,985,987,989],{"class":95,"line":344},[93,980,870],{"class":347},[93,982,351],{"class":107},[93,984,146],{"class":107},[93,986,877],{"class":149},[93,988,152],{"class":107},[93,990,357],{"class":107},[93,992,993,996,998,1000,1002,1004],{"class":95,"line":360},[93,994,995],{"class":347},"  property2",[93,997,351],{"class":107},[93,999,146],{"class":107},[93,1001,891],{"class":149},[93,1003,152],{"class":107},[93,1005,357],{"class":107},[93,1007,1008,1011,1013,1016,1018,1020,1022,1024,1026],{"class":95,"line":376},[93,1009,1010],{"class":347},"  property3",[93,1012,351],{"class":107},[93,1014,1015],{"class":103}," [",[93,1017,165],{"class":186},[93,1019,291],{"class":107},[93,1021,907],{"class":186},[93,1023,291],{"class":107},[93,1025,221],{"class":186},[93,1027,1028],{"class":103},"]\n",[93,1030,1031],{"class":95,"line":634},[93,1032,379],{"class":107},[93,1034,1035],{"class":95,"line":639},[93,1036,516],{"emptyLinePlaceholder":515},[93,1038,1039,1041,1043,1045,1047,1049,1051,1053,1055],{"class":95,"line":925},[93,1040,400],{"class":103},[93,1042,75],{"class":107},[93,1044,406],{"class":405},[93,1046,934],{"class":103},[93,1048,75],{"class":107},[93,1050,939],{"class":103},[93,1052,942],{"class":186},[93,1054,483],{"class":103},[93,1056,115],{"class":107},[50,1058,1060],{"id":1059},"_5","#5",[55,1062,1063],{},"Why does this code not work? Edit until it works.",[84,1065,1067],{"className":86,"code":1066,"language":88,"meta":89,"style":89},"const myArray = [20, 30, 40];\n\nconsole.log(myArray[3]);\n",[68,1068,1069,1094,1098],{"__ignoreMap":89},[93,1070,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1092],{"class":95,"line":96},[93,1072,100],{"class":99},[93,1074,283],{"class":103},[93,1076,108],{"class":107},[93,1078,1015],{"class":103},[93,1080,165],{"class":186},[93,1082,291],{"class":107},[93,1084,907],{"class":186},[93,1086,291],{"class":107},[93,1088,221],{"class":186},[93,1090,1091],{"class":103},"]",[93,1093,115],{"class":107},[93,1095,1096],{"class":95,"line":344},[93,1097,516],{"emptyLinePlaceholder":515},[93,1099,1100,1102,1104,1106,1109,1112,1114],{"class":95,"line":360},[93,1101,400],{"class":103},[93,1103,75],{"class":107},[93,1105,406],{"class":405},[93,1107,1108],{"class":103},"(myArray[",[93,1110,1111],{"class":186},"3",[93,1113,483],{"class":103},[93,1115,115],{"class":107},[77,1117,1118],{},[80,1119,1120,1123,1155,1158],{"label":82},[55,1121,1122],{},"Remember, arrays start their indexing at 0, so this array has the following index values:",[84,1124,1126],{"className":86,"code":1125,"language":88,"meta":89,"style":89},"\u002F\u002F Index         0   1   2\nconst myArray = [20, 30, 40]\n",[68,1127,1128,1133],{"__ignoreMap":89},[93,1129,1130],{"class":95,"line":96},[93,1131,1132],{"class":673},"\u002F\u002F Index         0   1   2\n",[93,1134,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153],{"class":95,"line":344},[93,1136,100],{"class":99},[93,1138,283],{"class":103},[93,1140,108],{"class":107},[93,1142,1015],{"class":103},[93,1144,165],{"class":186},[93,1146,291],{"class":107},[93,1148,907],{"class":186},[93,1150,291],{"class":107},[93,1152,221],{"class":186},[93,1154,1028],{"class":103},[55,1156,1157],{},"And therefore, this is the correct way to write this program.",[84,1159,1161],{"className":86,"code":1160,"language":88,"meta":89,"style":89},"const myArray = [20, 30, 40];\n\nconsole.log(myArray[2]);\n",[68,1162,1163,1187,1191],{"__ignoreMap":89},[93,1164,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185],{"class":95,"line":96},[93,1166,100],{"class":99},[93,1168,283],{"class":103},[93,1170,108],{"class":107},[93,1172,1015],{"class":103},[93,1174,165],{"class":186},[93,1176,291],{"class":107},[93,1178,907],{"class":186},[93,1180,291],{"class":107},[93,1182,221],{"class":186},[93,1184,1091],{"class":103},[93,1186,115],{"class":107},[93,1188,1189],{"class":95,"line":344},[93,1190,516],{"emptyLinePlaceholder":515},[93,1192,1193,1195,1197,1199,1201,1203,1205],{"class":95,"line":360},[93,1194,400],{"class":103},[93,1196,75],{"class":107},[93,1198,406],{"class":405},[93,1200,1108],{"class":103},[93,1202,942],{"class":186},[93,1204,483],{"class":103},[93,1206,115],{"class":107},[1208,1209,1210],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":89,"searchDepth":344,"depth":344,"links":1212},[1213,1214,1215,1216,1217],{"id":52,"depth":344,"text":53},{"id":488,"depth":344,"text":489},{"id":562,"depth":344,"text":563},{"id":845,"depth":344,"text":846},{"id":1059,"depth":344,"text":1060},"A challenge about declaring and assigning variables in JavaScript.","md",null,{},{"icon":39},{"title":36,"description":1218},"6yQb0lKL2UMAatOx0jHPVZxBjrOWF6KA45nynevV-Qw",[1226,1228],{"title":31,"path":32,"stem":33,"description":1227,"icon":34,"children":-1},"Learn about datatypes in JavaScript.",{"title":41,"path":42,"stem":43,"description":1229,"icon":34,"children":-1},"Learn about operators in JavaScript.",1779657548866]