This repository is created to learn and practice JavaScript from beginner to advanced level.
It covers core concepts, modern JavaScript features, and logic-building exercises with clear examples.
Perfect for students, beginners, and anyone who wants to strengthen their JavaScript fundamentals step by step.
- Display messages using
alert() - Declare variables using
var,let, andconst - Understand variable naming rules and initialization
- Create arrays and access elements
- Use array methods:
push(),pop(),shift(),unshift() - Iterate through arrays using loops and array methods
- Repeat tasks efficiently using
for,while, anddo-whileloops - Nested loops and loop control statements:
breakandcontinue
- Debug code using
console.log(),console.warn(),console.error() - Display tables and objects in console for better readability
- Create objects and access properties
- Use methods inside objects
- Understand key-value pairs and nested objects
- Execute code based on conditions using
if,else if, andelse - Practice nested conditions and logical operators
- Write reusable code with functions
- Understand function parameters, return values, and arrow functions
- Transform arrays using the
map()method - Return new arrays without modifying the original array
- Filter arrays based on conditions using
filter() - Work with callback functions for custom filtering logic
- Accumulate values from arrays using
reduce() - Use for sums, averages, and complex data transformations
- Assign values to variables
- Practice destructuring of arrays and objects for cleaner code
- Improve logical thinking using boolean operators
- Solve real-world problems with conditional and loop-based logic
- Use
==,===,!=,!==,>,<,>=,<= - Understand type coercion and strict equality
- Learn difference between global and block-level variables
- Understand scope of
var,let, andconst
- Increase or decrease values using
++and-- - Practice pre-increment, post-increment, pre-decrement, and post-decrement
- Use special characters like
\n,\t,\\,\",\' - Format strings properly with escape sequences
- Open files topic-wise
- Practice code step by step
- Run JavaScript files using:
- Browser Console
- VS Code Live Server
- Node.js
β Build strong JavaScript fundamentals
β Improve logic-building skills
β Prepare for frontend frameworks like React
javascript-practice/ β βββ Alert and variable/ β βββ app.js β βββ Arrays/ β βββ app.js β βββ loops/ β βββ app.js β βββ Assign compare logic operators/ β βββ app.js β βββ Console Object/ β βββ app.js β βββ functions/ β βββ app.js β βββ map-filter-reduce/ β βββ app.js β βββ Escape sequence character/ β βββ app.js β βββ Globle and block scop and increment decrement/ β βββ app.js β βββ Hero section/ β βββ app.js β βββ If_eles_condition/ β βββ app.js β βββ Practice_set_on_arrays/ β βββ app.js β βββ README.md βββ app.js βββ style.css -
Clone the repository:
git clone https://github.com/Bilal742/javascript-practice.git
If you find this repository helpful, please star β the repository and keep learning π