Skip to content

Commit ea76bb6

Browse files
committed
fixed indentation on certain bullet points
1 parent a6c09f0 commit ea76bb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

JavaScript-Quick-Reference.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -429,17 +429,17 @@ Detailed guide on JavaScript Arrays, covering array manipulation methods, iterat
429429
Overview of JavaScript Object, its properties, and methods.
430430

431431
### Creating an Object
432-
`const myObject = { key1: 'value1', key2: 'value2' };` Object literal with two properties
432+
- `const myObject = { key1: 'value1', key2: 'value2' };` Object literal with two properties
433433

434434
### Accessing Properties
435435
- `console.log(myObject.key1);` 'value1'
436436
- `console.log(myObject['key2']);` 'value2'
437437

438438
### Adding Properties
439-
`myObject.key3 = 'value3';` Adding a new property 'key3'
439+
- `myObject.key3 = 'value3';` Adding a new property 'key3'
440440

441441
### Deleting Properties
442-
`delete myObject.key2;` Removing property 'key2'
442+
- `delete myObject.key2;` Removing property 'key2'
443443

444444
### Methods of the Object Constructor
445445
- `Object.assign(target, ...sources)` Copies values from source to target objects.
@@ -643,7 +643,7 @@ Essential guide to JavaScript's Math object, covering basic constants and mathem
643643
- `Math.sqrt(16);` Square root of 16: Returns 4
644644

645645
### Random Number Generation
646-
`Math.random();` Generates a random number between 0 (inclusive) and 1 (exclusive)
646+
- `Math.random();` Generates a random number between 0 (inclusive) and 1 (exclusive)
647647

648648
[🔝 Back to Top](#top)
649649
---
@@ -738,7 +738,7 @@ Methods for selecting, creating, and modifying DOM elements.
738738
- `element.appendChild(newElement);` Appends the new element as the last child of the parent element.
739739

740740
### Removing elements
741-
`element.removeChild(child);` Removes a child node from the DOM.
741+
- `element.removeChild(child);` Removes a child node from the DOM.
742742

743743
### Modifying elements
744744
- `element.innerHTML = '<p>New HTML content</p>';` Changes the HTML content of an element.

0 commit comments

Comments
 (0)