This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let wordGame = [ | |
["Melsoft Academy Word Game: Fill in the missing letters"], | |
[" "," "," "," "," "], | |
[" ","E"," ","L","O"], | |
[" "," "," "," "," "], | |
[" ","C"," "," ","L"], | |
["I"," "," "," "," "] | |
]; | |
wordGame[2][2]=("L") | |
wordGame[2][0]=("H") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Empty Array | |
let secretList=[]; | |
console.log(secretList); | |
//Add Items | |
secretList=["Disguise kit", "Grappling hook", "Flashlight", "Map", "Snacks"] | |
console.log(secretList); | |
//Remove item | |
delete secretList[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let wordGame = [ | |
["Melsoft Academy Word Game: Fill in the missing letters"], | |
[" "," "," "," "," "], | |
[" ","E"," ","L","O"], | |
[" "," "," "," "," "], | |
[" ","C"," "," ","L"], | |
["I"," "," "," "," "] | |
]; | |
console.log(wordGame); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Create an empty array | |
let secreteList = [] | |
// 2. Gather Supplies | |
secretList = ["Disguise kit", "Grappling book", "Flashlight", "Map", "Snacks"]; | |
console.log(secretList); | |
// 3. Remove Grappling book | |
delete(secretList [1]); | |
console.log(secretList); |