```javascript // 舉例 var ourArray = [1,2,3]; var removedFromOurArray = ourArray.pop(); // removedFromOurArray now equals 3, and ourArray now equals [1,2] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. var removedFromMyArray=myArray.pop(); ```
http://www.o2fo.com/chun5060/chun5060-mzj624am.html```javascript // 舉例 var ourArray = ["Stimpson", "J", ["cat"]]; removedFromOurArray = ourArray.shift(); // removedFromOurArray now equals "Stimpson" and ourArray now equals ["J", ["cat"]]. // Setup var myArray = [["John", 23], ["dog", 3]]; // Only change code below this line. var removedFromMyArr...
http://www.o2fo.com/chun5060/chun5060-3b7f24an.html```javascript // 舉例 var ourArray = ["Stimpson", "J", "cat"]; ourArray.shift(); // ourArray now equals ["J", "cat"] ourArray.unshift("Happy"); // ourArray now equals ["Happy", "J", "cat"] // Setup var myArray = [["John", 23], ["dog", 3]]; myArray.shift(); // Only change code below this line. myA...
http://www.o2fo.com/chun5060/chun5060-g4cd24ao.html```javascript var myList = [["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15]]; ```
http://www.o2fo.com/chun5060/chun5060-w2xn24ap.html```javascript // 舉例 function ourFunction() { console.log("Heyya, World"); } ourFunction(); // Only change code below this line function myFunction() { console.log("Hi World"); } myFunction(); ```
http://www.o2fo.com/chun5060/chun5060-turh24aq.html```javascript // 舉例 function ourFunction(a, b) { console.log(a - b); } ourFunction(10, 5); // Outputs 5 // Only change code below this line. function myFunction(a, b) { console.log(a + b); } myFunction(10, 5); ```
http://www.o2fo.com/chun5060/chun5060-bnpj24ar.html```javascript // Declare your variable here var myGlobal=10; function fun1() { // Assign 5 to oopsGlobal Here oopsGlobal=5; } // Only change code above this line function fun2() { var output = ""; if (typeof myGlobal != "undefined") { output += "myGlobal: " + myGlobal; } if (typeof oopsGlobal != "un...
http://www.o2fo.com/chun5060/chun5060-ywxk24as.html```javascript function myFunction() { 'use strict'; var myVar='use strict'; console.log(myVar); } myFunction(); // run and check the console // myVar is not defined outside of myFunction // now remove the console log line to pass the test ```
http://www.o2fo.com/chun5060/chun5060-7jtc24at.html```javascript // Setup var outerWear = "T-Shirt"; function myFunction() { // Only change code below this line var outerWear = "sweater"; // Only change code above this line return outerWear; } myFunction(); ```
http://www.o2fo.com/chun5060/chun5060-r62c24au.html```javascript // 舉例 function minusSeven(num) { return num - 7; } // Only change code below this line function timesFive(num) { return num * 5; } ```
http://www.o2fo.com/chun5060/chun5060-ylek24av.html抱歉,暫時沒有相關的微課
w3cschool 建議您:
抱歉,暫時沒有相關的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關的教程
w3cschool 建議您:
```javascript // 舉例 var ourArray = [1,2,3]; var removedFromOurArray = ourArray.pop(); // removedFromOurArray now equals 3, and ourArray now equals [1,2] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. var removedFromMyArray=myArray.pop(); ```
http://www.o2fo.com/chun5060/chun5060-mzj624am.html```javascript // 舉例 var ourArray = ["Stimpson", "J", ["cat"]]; removedFromOurArray = ourArray.shift(); // removedFromOurArray now equals "Stimpson" and ourArray now equals ["J", ["cat"]]. // Setup var myArray = [["John", 23], ["dog", 3]]; // Only change code below this line. var removedFromMyArr...
http://www.o2fo.com/chun5060/chun5060-3b7f24an.html```javascript // 舉例 var ourArray = ["Stimpson", "J", "cat"]; ourArray.shift(); // ourArray now equals ["J", "cat"] ourArray.unshift("Happy"); // ourArray now equals ["Happy", "J", "cat"] // Setup var myArray = [["John", 23], ["dog", 3]]; myArray.shift(); // Only change code below this line. myA...
http://www.o2fo.com/chun5060/chun5060-g4cd24ao.html```javascript var myList = [["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15],["Chocolate Bar", 15]]; ```
http://www.o2fo.com/chun5060/chun5060-w2xn24ap.html```javascript // 舉例 function ourFunction() { console.log("Heyya, World"); } ourFunction(); // Only change code below this line function myFunction() { console.log("Hi World"); } myFunction(); ```
http://www.o2fo.com/chun5060/chun5060-turh24aq.html```javascript // 舉例 function ourFunction(a, b) { console.log(a - b); } ourFunction(10, 5); // Outputs 5 // Only change code below this line. function myFunction(a, b) { console.log(a + b); } myFunction(10, 5); ```
http://www.o2fo.com/chun5060/chun5060-bnpj24ar.html```javascript // Declare your variable here var myGlobal=10; function fun1() { // Assign 5 to oopsGlobal Here oopsGlobal=5; } // Only change code above this line function fun2() { var output = ""; if (typeof myGlobal != "undefined") { output += "myGlobal: " + myGlobal; } if (typeof oopsGlobal != "un...
http://www.o2fo.com/chun5060/chun5060-ywxk24as.html```javascript function myFunction() { 'use strict'; var myVar='use strict'; console.log(myVar); } myFunction(); // run and check the console // myVar is not defined outside of myFunction // now remove the console log line to pass the test ```
http://www.o2fo.com/chun5060/chun5060-7jtc24at.html```javascript // Setup var outerWear = "T-Shirt"; function myFunction() { // Only change code below this line var outerWear = "sweater"; // Only change code above this line return outerWear; } myFunction(); ```
http://www.o2fo.com/chun5060/chun5060-r62c24au.html```javascript // 舉例 function minusSeven(num) { return num - 7; } // Only change code below this line function timesFive(num) { return num * 5; } ```
http://www.o2fo.com/chun5060/chun5060-ylek24av.html抱歉,暫時沒有相關的文章
w3cschool 建議您: