Skip to main content

Basics Overview

Basics you should know to at least be able to solve simple leetcode questions!

  1. Data Types
  • Understand different data types such as numbers, strings, booleans, arrays, objects, etc.
  • Know how to manipulate and compare data of different types.
  1. Variables
  • Understand how to declare and assign variables.
  • Know the rules for variable naming and initialization.
  1. Functions
  • Understand how to define functions and call them with arguments.
  • Know how to return values from functions.
  1. Scope
  • Understand the concept of scope and how it affects variable accessibility.
  • Know the difference between global scope and local scope.
  1. Conditional Expressions
  • Understand how to use conditional expressions such as if, else if, and else to make decisions in code.
  1. Control Flow
  • Know how to use loops (for loop, while loop) to iterate over arrays or perform repetitive tasks.
  1. 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.