Skip to content

Commit 920afc2

Browse files
committed
minor fixes
1 parent 3227644 commit 920afc2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

JavaScript-Quick-Reference.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,23 +387,23 @@ Detailed guide on JavaScript Arrays, covering array manipulation methods, iterat
387387
### Methods
388388
- `Array.from(arrayLike[, mapFn[, thisArg]])` Creates a new Array instance from an array-like or iterable object.
389389
- `Array.isArray(obj)` Returns true if a variable is an array, if not false.
390-
- `Array.of(element0[, element1[, ...[, elementN]]])` Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
390+
- `Array.of("element1", "element2");` Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
391391

392392
### Mutator Methods
393393
- `arr.copyWithin(target, start, end)` Copies a sequence of array elements within the array.
394394
- `arr.fill(value, start, end)` Fills all the elements of an array from a start index to an end index with a static value.
395395
- `arr.pop()` Removes the last element from an array and returns that element.
396396
- `arr.flat()` Merges nested array into one single array.
397-
- `arr.push([element1[, ...[, elementN]]])` Adds one or more elements to the end of an array and returns the new length of the array.
397+
- `arr.push("element1", "element2");` Adds one or more elements to the end of an array and returns the new length of the array.
398398
- `arr.reverse()` Reverses the order of the elements of an array in place — the first becomes the last, and the last becomes the first.
399399
- `arr.shift()` Removes the first element from an array and returns that element.
400400
- `arr.sort()` Sorts the elements of an array in place and returns the array.
401-
- `array.splice(start, deleteCount, item1, item2, ...)` Adds and/or removes elements from an array.
402-
- `arr.unshift([element1[, ...[, elementN]]])` Adds one or more elements to the front of an array and returns the new length of the array.
401+
- `array.splice(start, deleteCount, item1, item2)` Adds and/or removes elements from an array.
402+
- `arr.unShift("element1", "element2");` Adds one or more elements to the front of an array and returns the new length of the array.
403403

404404
### Acessor Methods
405405
- `arr.at(index)` Returns the element at the specified index in the array.
406-
- `arr.concat(value1[, value2[, ...[, valueN]]])` Returns a new array comprised of this array joined with other array(s) and/or value(s).
406+
- `arr.concat(value1, value2, array2)` Returns a new array comprised of this array joined with other array(s) and/or value(s).
407407
- `arr.includes(searchElement, fromIndex)` Determines whether an array contains a certain element, returning true or false as appropriate.
408408
- `arr.indexOf(searchElement[, fromIndex])` Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
409409
- `arr.join(separator)` Joins all elements of an array into a string.
@@ -753,7 +753,7 @@ Methods for selecting, creating, and modifying DOM elements.
753753
- `element.classList.toggle(className);` Toggles a class on the element.
754754
- `element.style.property = "value";` Changes the style of an element.
755755

756-
### Examples of Common Style Properties and Attributes
756+
### Examples of Common Style Properties & Attributes
757757
- `element.style.color = "red";` Sets the text color of the element.
758758
- `element.style.backgroundColor = "yellow";` Sets the background color of the element.
759759
- `element.style.border = "1px solid black";` Sets a border for the element.

0 commit comments

Comments
 (0)