let numbers = [2, 3, 5, 6, 7, 8]
let myfavouritenumbers = ["1"," 2"," 3", "4"," 5"]
let myfavouritecolors = ["red", "green", "blue"]
let mynumbers = 1,78



//"push"-adds the given element to the array
//result- red, green, blue, yellow
myfavouritecolors.push("yellow")



//"splice"-Removes the element whose "address" we gave
//result- 1,2,4,5
myfavouritenumbers.splice(2, 1)



//[3]- find third number in array
//result-"6"
numbers[3]



//"tofixed"-Rounds the number
//rersult- "2"
mynumbers.tofixed()

by Gvanca Gharibashvili
2 years ago
JavaScript
0
Pro tip: use ```triple backticks around text``` to write in code fences