Day 1: JavaScript 101 – History, Ecosystem & Setting Up Your Toolkit

Aditya SinghAditya Singh
3 min read

Series: [Link to Series] | Next: [Day 2: Variables & Data Types]

📖 Today’s Learning Objective

“Discover JavaScript’s origins, its role in modern tech, and set up a professional development environment.”

🌍 Why JavaScript Matters

  • The Language of the Web: Runs on 99% of browsers (Frontend).

  • Beyond Browsers: Powers apps via Node.js (Backend), React Native (Mobile), and even robots!

  • #1 Popularity: Most used language for 10+ years (Stack Overflow Survey).

⏳ A 30-Second History Lesson

  1. 1995: Created in 10 days by Brendan Eich for Netscape.

  2. 1997: Standardized as ECMAScript (ES1).

  3. 2015: ES6 revolutionized JS with modern syntax.

  4. Today: Used by Netflix, Uber, NASA, and your favorite apps.

🧩 The JavaScript Ecosystem

A quick map of tools you’ll encounter:

  • Runtimes: Browsers (Chrome, Firefox) • Node.js (Server).

  • Frameworks: React, Vue, Angular (Frontend) • Express (Backend).

  • Package Managers: npm, yarn (for installing libraries).

  • Build Tools: Webpack, Vite (for optimizing code).

⚙️ Setting Up Your Dev Toolkit

1. Code Editor

  • VS Code: Free, lightweight, and the dev favorite.

    • Install these extensions:

      • Prettier (Code formatting)

      • ESLint (Error checking)

      • Live Server (Auto-refresh browser).

2. Browser DevTools

  • Chrome/Firefox: Right-click → InspectConsole tab.

    • Try typing console.log("Hello, World!"); and hit Enter.

3. Node.js & npm

  • Install Node.js (Includes npm):

      # Verify installation  
      node -v  
      npm -v
    

4. Terminal Basics

  • Windows: Use Git Bash.

  • Mac/Linux: Built-in Terminal.

  • Practice:

      mkdir js-projects  
      cd js-projects  
      touch app.js
    

💻 Your First JavaScript Code

In the Browser

  1. Create index.html:

     <!DOCTYPE html>  
     <html>  
       <body>  
         <script>  
           alert("JavaScript is alive!");  
         </script>  
       </body>  
     </html>
    
  2. Open it in Chrome – you’ll see a popup!

In Node.js

  1. Open app.js in VS Code:

     console.log("I’m running on a server!");
    
  2. Run it:

     node app.js
    

🔧 Real-World Use Case

  • Frontend: Add interactivity to buttons/forms.

  • Backend: Build APIs with Node.js.

  • Scripting: Automate tasks like renaming files.

💪 Challenge of the Day

  1. Beginner: Run the browser and Node.js examples above.

  2. Advanced: Use VS Code’s Live Server to auto-refresh your HTML file when edited.
    Share a screenshot of your setup in the comments!

📚 Resources

🧠 Pro Tip

“Don’t get overwhelmed by frameworks yet! Master vanilla JS first – it’s the foundation of everything.”

📝 My Journey

“I installed Node.js backwards my first time and broke my terminal. Moral: Follow the docs, and it’s okay to Google ‘how to uninstall Node.js’!”

❓ Discussion Question

“What excites you most about learning JavaScript?”

📌 Key Takeaways

  1. JavaScript started as a browser tool but now runs everywhere.

  2. VS Code + Node.js + Chrome DevTools = Your starter kit.

  3. You’ve already run JS in two environments – congrats! 🎉

🚀 Tomorrow’s Teaser

“Day 2: Variables, Data Types, and Making Decisions – Learn to store and manipulate data like a pro!”

💬 Let’s Connect!

  • Follow me for daily updates.

  • Share your setup in the comments!

  • Stuck? Ask questions – no judgment here!

0
Subscribe to my newsletter

Read articles from Aditya Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Aditya Singh
Aditya Singh

Passionate BTech student on a journey to explore and master technology. I love learning new skills, tackling challenges, and sharing my knowledge. Currently diving deep into software development, cloud computing, and everything in between!