mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Merge pull request #3803 from 5happy1/patch-1
[javascript/en] Add missing semicolon for consistency
This commit is contained in:
commit
e2592a9a35
@ -188,7 +188,7 @@ someVar = myArray.pop(); // Remove last element and return it
|
|||||||
|
|
||||||
// Join all elements of an array with semicolon
|
// Join all elements of an array with semicolon
|
||||||
var myArray0 = [32,false,"js",12,56,90];
|
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)
|
// Get subarray of elements from index 1 (include) to 4 (exclude)
|
||||||
myArray0.slice(1,4); // = [false,"js",12]
|
myArray0.slice(1,4); // = [false,"js",12]
|
||||||
|
Loading…
Reference in New Issue
Block a user