Basics Overview
Basics you should know to at least be able to solve simple leetcode questions!
- Data Types
- Understand different data types such as numbers, strings, booleans, arrays, objects, etc.
- Know how to manipulate and compare data of different types.
- Variables
- Understand how to declare and assign variables.
- Know the rules for variable naming and initialization.
- Functions
- Understand how to define functions and call them with arguments.
- Know how to return values from functions.
- Scope
- Understand the concept of scope and how it affects variable accessibility.
- Know the difference between global scope and local scope.
- Conditional Expressions
- Understand how to use conditional expressions such as if, else if, and else to make decisions in code.
- Control Flow
- Know how to use loops (for loop, while loop) to iterate over arrays or perform repetitive tasks.
- Array & Array Methods
- Understand how to work with arrays, including creating, accessing, and modifying array elements.
- Familiarize yourself with common array methods like push, pop, shift, unshift, slice, splice, forEach, map, filter, etc.