JavaScript Comments
<!DOCTYPE html> <html> <body> <h2>Single-line Comments</h2> <script> // Calculate the area of a rectangle const width = 8; const height = 5; const area = width * height; // area is now 40 console.log(area); </script> </body> </html>