
A simple button that changes text when clicked.
<!DOCTYPE html>
<html>
<head>
<title>My First JS Project</title>
</head>
<body>
<h1 id="title">Hello Developer 👋</h1>
<button onclick="changeText()">Click Me</button>
<script src="script.js"></script>
</body>
</html>function changeText() {
document.getElementById("title").innerText = "You clicked the button 🚀";
}✅ You just built your first interactive webpage!

sdf