JS Methods
JS Methods
- `map()`: Creates a new array with the results of calling a provided function on every element.
- `filter()`: Creates a new array with elements that pass a certain condition.
- `reduce()`: Applies a function against an accumulator and each element in the array to reduce it to
a single value.
- `getTime()`: Returns the numeric value corresponding to the time for the specified date.
7. **DOM Manipulation Methods**: Methods for interacting with the Document Object Model
(DOM). Examples include:
- `querySelector()`: Returns the first element that matches a specified CSS selector.
- `querySelectorAll()`: Returns a NodeList containing all elements that match a specified CSS
selector.
- `await`: Pauses the execution of an async function until the Promise is resolved or rejected.
- `finally()`: Attaches a callback that is executed when the Promise is settled, whether it's resolved
or rejected.
These are just brief descriptions, and each method or function has its own specific use cases and
details. The best way to understand them thoroughly is to refer to the official documentation or
experiment with them in your own code.