Skip to content

codevocabulary/30-Days-Of-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ 30 Days of JavaScript โ€” Beginner to Advanced

๐ŸŽฏ Master JavaScript step-by-step in 30 days
From absolute beginner โ†’ advanced concepts โ†’ real-world project


๐Ÿ“š Course Structure

Day Topic Level
Day 01 Variables & Data Types ๐ŸŸข Beginner
Day 02 Operators ๐ŸŸข Beginner
Day 03 Strings & String Methods ๐ŸŸข Beginner
Day 04 Arrays ๐ŸŸข Beginner
Day 05 Objects ๐ŸŸข Beginner
Day 06 Functions ๐ŸŸข Beginner
Day 07 Scope & Hoisting ๐ŸŸก Intermediate
Day 08 Arrow Functions ๐ŸŸก Intermediate
Day 09 Array Methods ๐ŸŸก Intermediate
Day 10 Destructuring ๐ŸŸก Intermediate
Day 11 Spread & Rest Operators ๐ŸŸก Intermediate
Day 12 DOM Manipulation Basics ๐ŸŸก Intermediate
Day 13 DOM Events ๐ŸŸก Intermediate
Day 14 Forms & Validation ๐ŸŸก Intermediate
Day 15 ES6 Classes ๐ŸŸก Intermediate
Day 16 Prototypes & Inheritance ๐ŸŸ  Advanced
Day 17 Promises ๐ŸŸ  Advanced
Day 18 Async / Await ๐ŸŸ  Advanced
Day 19 Fetch API & HTTP ๐ŸŸ  Advanced
Day 20 Error Handling ๐ŸŸ  Advanced
Day 21 ES Modules ๐ŸŸ  Advanced
Day 22 LocalStorage & SessionStorage ๐ŸŸ  Advanced
Day 23 Regular Expressions ๐ŸŸ  Advanced
Day 24 Closures ๐Ÿ”ด Expert
Day 25 Higher-Order Functions ๐Ÿ”ด Expert
Day 26 Iterators & Generators ๐Ÿ”ด Expert
Day 27 Map & Set ๐Ÿ”ด Expert
Day 28 WeakMap & WeakSet ๐Ÿ”ด Expert
Day 29 Design Patterns ๐Ÿ”ด Expert
Day 30 Final Project โ€” Full App ๐Ÿ”ด Expert

โœจ What Makes This Course Special?

  • ๐Ÿ’ก Beginner-friendly explanations
  • ๐Ÿง  Deep understanding of core concepts
  • ๐Ÿงช Hands-on exercises every day
  • ๐Ÿงพ Fully commented code
  • ๐Ÿš€ Real-world final project

๐Ÿ›  Getting Started

1๏ธโƒฃ Clone the Repository

git clone https://github.com/30daysofjavascript/30-Days-of-JavaScript.git
cd 30-Days-of-JavaScript

2๏ธโƒฃ Explore Each Day

  • Open the folder
  • Read README.md
  • Study index.js

๐Ÿš€ Complete Guide to Running JavaScript Everywhere

This guide covers all major ways to run JavaScript, from beginner-friendly methods to advanced environments.


๐ŸŒ 1. How to run JavaScript?

โœ… Method 1: Developer Console (Easiest)

๐Ÿ”น Steps:

  1. Open Google Chrome

  2. Open any website or a blank tab

  3. Press:

    • Ctrl + Shift + I (Windows/Linux)
    • Cmd + Option + I (Mac)
  4. Go to the Console tab

  5. Type:

console.log("Hello from Chrome Console!");
  1. Press Enter

๐ŸŽฏ Output: Instant result in the console.


โœ… Method 2: HTML File

๐Ÿ”น Steps:

  1. Open Notepad / VS Code
  2. Create index.html
<!DOCTYPE html>
<html>
<head>
  <title>Run JS</title>
</head>
<body>

<h1>JavaScript Test</h1>

<script>
  alert("Hello from JavaScript!");
  console.log("Check console");
</script>

</body>
</html>
  1. Save the file
  2. Open it in Chrome

๐ŸŽฏ Output:

  • Popup alert
  • Console message

โœ… Method 3: External JavaScript File

๐Ÿ”น Steps:

index.html

<!DOCTYPE html>
<html>
<head>
  <title>External JS</title>
</head>
<body>

<script src="script.js"></script>

</body>
</html>

script.js

console.log("Running from external JS file!");

Open index.html in Chrome.


โœ… Method 4: Chrome Snippets (Advanced)

๐Ÿ”น Steps:

  1. Open DevTools (F12)
  2. Go to Sources โ†’ Snippets
  3. Create a new snippet
  4. Write:
console.log("Snippet executed");
  1. Press Ctrl + Enter

๐Ÿ–ฅ๏ธ 2. Run JavaScript Using Node.js

โœ… Setup & Run

๐Ÿ”น Install:

Download and install Node.js

๐Ÿ”น Run Code:

// app.js
console.log("Hello from Node.js");
node app.js

โœ… Node REPL (Interactive Mode)

node

Then:

console.log("Hello REPL");

๐Ÿ“ฆ 3. Run Using npm Scripts

๐Ÿ”น Steps:

npm init -y

Edit package.json:

"scripts": {
  "start": "node app.js"
}

Run:

npm start

โšก 4. Run JavaScript Using Deno

๐Ÿ”น Steps:

// app.js
console.log("Hello from Deno");
deno run app.js

๐ŸŒ 5. Run JavaScript Online (No Installation)

โœ… Platforms:

  • CodePen
  • JSFiddle
  • Replit
  • StackBlitz

๐Ÿ”น Example:

console.log("Hello online!");

Click Run.


๐Ÿ“ฑ 6. Run JavaScript on Mobile

โœ… Methods:

  • Chrome mobile console (limited)

  • Apps:

    • Dcoder
    • JSAnywhere

๐Ÿงฉ 7. Run JavaScript as ES Modules

<script type="module">
  console.log("Using modules");
</script>

๐Ÿ› ๏ธ 8. Run Using Build Tools (Example: Vite)

npm create vite@latest
cd project
npm install
npm run dev

๐Ÿงต 9. Run JavaScript in Web Workers

const worker = new Worker("worker.js");

๐Ÿ–ง 10. Run JavaScript on Server (Express.js)

const express = require("express");
const app = express();

app.get("/", (req, res) => {
  res.send("Hello Server");
});

app.listen(3000);

Run:

node server.js

โ˜๏ธ 11. Run JavaScript in Cloud

โœ… Examples:

  • AWS Lambda
  • Google Cloud Functions
  • Azure Functions

๐Ÿงช 12. Run JavaScript with Testing Tools

npx jest

๐ŸŽฎ 13. Run JavaScript in Games

โœ… Libraries:

  • Phaser.js
  • Babylon.js

๐Ÿงพ 14. Run JavaScript in Database (MongoDB)

db.users.find()

๐Ÿง  15. Run Using JavaScript Engines

โœ… Examples:

  • V8 Engine
  • SpiderMonkey

๐Ÿ“Š Summary

Method Difficulty Use Case
Chrome Console Easy Quick testing
HTML File Easy Beginners
Node.js Medium Backend
Deno Medium Modern runtime
Online Tools Easy Practice
Cloud Advanced Production

๐ŸŽฏ Final Notes

๐Ÿ‘ถ Beginners should start with:

  • Chrome Console
  • HTML file

๐Ÿ‘จโ€๐Ÿ’ป Developers commonly use:

  • Node.js
  • Build tools

๐Ÿ’ก Tip: Start simple, then move to advanced tools as you grow.

๐Ÿงช 4. Online Editors


๐Ÿ“‹ Prerequisites

  • ๐Ÿง‘โ€๐Ÿ’ป VS Code (recommended)
  • ๐ŸŒ Browser (Chrome, Firefox, Edge)
  • โš™๏ธ Node.js (optional)
  • โค๏ธ Consistency


๐Ÿ” VS Code extension Live Server

  • Install Live Server
  • Right-click index.html โ†’ Open with Live Server

๐ŸŽฏ By the End You Will

โœ” Understand JavaScript deeply
โœ” Write modern ES6+ code
โœ” Work with APIs
โœ” Build real-world projects
โœ” Think like a developer


โญ Support

If this helps you:

๐Ÿ‘‰ Star โญ the repo
๐Ÿ‘‰ Share with others
๐Ÿ‘‰ Contribute


๐Ÿ‘จโ€๐Ÿ’ป Author

Built with โค๏ธ for the developer community.
Feel free to star โญ this repo if it helps you!


About

30 Days Of JavaScript challenge and Course from beginner to advanced JavaScript mastery course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors