JavaScript Basics
Concept | Description |
---|---|
Variables | Used to store data values |
Operators | Perform operations on values |
Conditionals | Execute different code based on conditions |
JavaScript Data Types
Data Type | Description |
---|---|
String | Sequence of characters |
Number | Numeric values |
Boolean | Logical values (true or false)```html |
JavaScript Functions
Function | Description |
---|---|
console.log() | Outputs a message to the console |
parseInt() | Parses a string and returns an integer |
Math.random() | Returns a random number between 0 and 1 |