# JavaScript Notes
## Variables
```javascript
const x = 1;
let y = 2;
var z = 3;
```
## Functions
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
const arrow = (x) => x * 2;
```
## Array Methods
### map()
Transforms each element.
### filter()
Filters elements based on condition.
### reduce()
Reduces array to single value.