JavaScript Learning Journey Day 3: Setup and Environments

Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 3 Today I explored how to set up and run JavaScript code in different environments. Understanding the setup is important because it helps us practice and build projects efficiently. 🔎 Where can we run JavaScript? JavaScript can run in multiple environments: 💻 1. Browser (Most Common) We can directly run JavaScript in the browser using the Console. 👉 Right click → Inspect → Console 💡 Example: console.log("Hello from Browser"); ⚙️ 2. Using HTML (script tag) We can connect JavaScript with HTML using the "<script>" tag. <script> console.log("Hello from HTML file"); </script> 🖥️ 3. Using Node.js (Backend) JavaScript can also run outside the browser using Node.js. 👉 Run command: node app.js 📌 Tools I used today • Browser DevTools • VS Code • Node.js 📌 Key Takeaways (Day 3) • JavaScript can run in browser and server • Browser Console is great for quick testing • Node.js allows running JS outside browser This is Day 3 of my JavaScript learning series. Next, I’ll start diving into Variables in JavaScript (var, let, const). #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode #programinghero

To view or add a comment, sign in

Explore content categories