/project
├── index.html
├── style.css
├── app.js
└── assets/
# Create project directory
mkdir my-first-app
cd my-first-app
# Add basic files
touch index.html style.css app.js
<!DOCTYPE html>
<html>
<head>
<title>My App</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Hello World</h1>
<script src="app.js"></script>
</body>
</html>
document.addEventListener('DOMContentLoaded', () => {
const button = document.createElement('button');
button.textContent = 'Click Me';
document.body.appendChild(button);
button.addEventListener('click', () => alert('Hello!'));
});
# Using Python
python -m http.server
Open http://localhost:8000
in your browser
Use Jest or Mocha for automated testing
Test all UI interactions and edge cases