Welcome to the JavaScript ES6+ & Full Stack Web Development Curriculum!
1. What is JavaScript?
2. Running JavaScript in the Browser
You can execute JavaScript in the Chrome DevTools Console (press F12 or Ctrl + Shift + I) or link it inside HTML:
⊞HTML5 Web Code (index.html)
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Intro</title>
</head>
<body>
<h1 id="headline">Hello World</h1>
<button id="cta-btn">Click Me</button>
<!-- External Script file -->
<script src="app.js"></script>
</body>
</html>
⊞Code Example
// app.js
console.log("🚀 JavaScript successfully loaded and executing!");
const btn = document.getElementById("cta-btn");
btn.addEventListener("click", () => {
document.getElementById("headline").textContent = "You Clicked the Button! 🎉";
});
