This repository contains my practice exercises for JavaScript fundamentals.
I am learning JavaScript step by step, starting from basic syntax, functions, and callbacks to DOM manipulation and simple projects.
-
Variables and Data Types
let
,const
,var
- Strings, Numbers, Boolean, Arrays, Objects
-
Operators and Conditionals
- Arithmetic, Comparison, Logical
if
,else if
,else
,switch
-
Loops
for
,while
,do-while
- Iterating arrays and strings
-
Functions
- Function declaration and expression
- Arrow functions
- Parameters and return values
-
Callbacks and Async
- Passing functions as arguments
- Using callbacks to handle results
- Async function basics
-
Array Methods (Basic)
push()
,pop()
,shift()
,unshift()
forEach()
,map()
,filter()
,reduce()
(if practiced)
-
DOM Basics (future)
- Selecting elements
- Event listeners
- Modifying content
- Greeting with callback function
- Counting characters in a string
- Reversing a string
- Sum of array elements
- Basic arithmetic functions
(Each exercise has its own .js
file and comments explaining the logic)
- Clone the repository:
git clone https://github.com/<your-username>/js-basics.git