Skip to content

mhd-haarish07/js-basic-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Basics for React Learning

A collection of basic JavaScript programs and exercises created while building a strong foundation in core JS concepts before moving on to React. This repo covers fundamental topics that are essential for understanding how React works under the hood.

Topics Covered

  • 📌 Variables & Data Types (var, let, const)
  • 🔁 Loops (for, while, forEach)
  • 🧩 Functions & Arrow Functions
  • 📦 Arrays & Array Methods (map, filter, reduce)
  • 🗂️ Objects & Object Methods
  • ⏳ Conditional Statements (if-else, switch)
  • 🎯 DOM Manipulation
  • ⚡ Events & Event Handling
  • 🔄 ES6+ Features (destructuring, spread/rest, template literals)
  • 🌐 Asynchronous JS (callbacks, promises, async/await)

Why This Repo?

React is built on top of core JavaScript concepts. This repo is a practice ground to strengthen those fundamentals — like array methods (map, filter), functions, and ES6 syntax — that are used everywhere in React development.

How to Use

  1. Clone the repository
   git clone https://github.com/your-username/your-repo-name.git
  1. Open any file in your code editor or browser console
  2. Run using Node.js
   node filename.js

or open the corresponding .html file in a browser (if applicable)

Folder Structure

js-basics-for-react/ ├── variables/ ├── loops/ ├── functions/ ├── arrays/ ├── objects/ ├── dom-manipulation/ ├── es6-features/ └── async-js/

What's Next?

After completing these exercises, the plan is to move on to building projects in React, applying these JavaScript fundamentals in a component-based structure.

License

This project is open source and available under the MIT License.

About

A collection of basic JavaScript programs and exercises to build a strong foundation before learning React.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors