mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
Add missing semicolon for consistency
This commit is contained in:
parent
a068a103f5
commit
eb6aa85639
@ -188,7 +188,7 @@ someVar = myArray.pop(); // Remove last element and return it
|
||||
|
||||
// Join all elements of an array with semicolon
|
||||
var myArray0 = [32,false,"js",12,56,90];
|
||||
myArray0.join(";") // = "32;false;js;12;56;90"
|
||||
myArray0.join(";"); // = "32;false;js;12;56;90"
|
||||
|
||||
// Get subarray of elements from index 1 (include) to 4 (exclude)
|
||||
myArray0.slice(1,4); // = [false,"js",12]
|
||||
|
Loading…
Reference in New Issue
Block a user