Skip to content

This repository contains a tutorial on the JavaScript programming language. The tutorial is divided into several sections, each of which covers a different topic.

License

Notifications You must be signed in to change notification settings

devstoriesplayground/learn-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📘 Learn JavaScript

A beginner-friendly tutorial walkthrough covering fundamental JavaScript concepts.


💡 What is JavaScript?

JavaScript is a versatile programming language primarily used to make web pages interactive. It's one of the core technologies of the web, alongside HTML and CSS. JavaScript lets you create dynamic content, control multimedia, animate images, validate forms, and much more—all within the browser.

Modern JavaScript (ES6 and beyond) can also be used on the server-side using environments like Node.js, enabling full-stack development with one language.


🧰 How to Install JavaScript

You don’t need to install anything to start using JavaScript in a browser! However, for local development, here are two ways to get started:

✅ Option 1: Run JavaScript in Your Browser

  1. Open your browser
  2. Right-click and choose Inspect or press Ctrl+Shift+I
  3. Go to the Console tab
  4. Type:
console.log("Hello, JavaScript!");

Press Enter and see the output.

✅ Option 2: Install Node.js (Recommended for Local JS Files)

Node.js allows you to run JavaScript on your computer (outside the browser).

Steps to Install:

  1. Go to https://nodejs.org/
  2. Download the LTS version
  3. Install it like any normal software
  4. After installation, open your terminal/command prompt and check:
node -v
npm -v

If both versions show up, you’re good to go! You can now run JS files like this:

node filename.js

🗂️ Repository Structure

learn-javascript/
│
├── .idea/              # IDE project settings (e.g. WebStorm/IDEA)
├── introduction/       # Basic “Hello, World!” and JS setup
├── datatype/           # Variables and data types
├── operator/           # Operators and expressions
├── flowcontrol/        # Conditional statements and loops
├── function/           # Declaring and calling functions
├── LICENSE             # MIT License
└── README.md           # You are here!

🚀 Getting Started

  1. Clone the repository:
git clone https://github.com/devstoriesplayground/learn-javascript.git
cd learn-javascript
  1. Explore the content:
    • Each folder contains simple .js or .html files with commented code and explanations.
    • Open them in your browser (for HTML) or run .js files via Node.js.
  2. Practice by editing code: Tweak examples, add your own console.log(), and experiment to learn!

🎯 What You'll Learn

  • introduction/ – JavaScript setup and basic output
  • datatype/ – Primitives: Strings, Numbers, Booleans, null, undefined
  • operator/ – Arithmetic, assignment, comparison, logical operators
  • flowcontrol/if, else if, else, switch, for, while, do-while
  • function/ – Function declarations, expressions, parameters, returns

🤗 Who Is This For?

  • JavaScript newcomers
  • Self-learners and students
  • App developers wanting quick refreshers

🛠️ Contributing

Contributions welcome! You can:

  • Add more examples or exercises
  • Include real-world demos
  • Refine documentation

Steps:

  1. Fork the repo
  2. Create a branch (e.g. enhancement-xyz)
  3. Commit your changes
  4. Open a pull request

🧑‍💻 About & Contact

Created by devstoriesplayground – feel free to reach out via GitHub!

Happy coding, and enjoy learning JavaScript! 🚀

📜 License

This project is available under the MIT License.

About

This repository contains a tutorial on the JavaScript programming language. The tutorial is divided into several sections, each of which covers a different topic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published