document.write("Ahoj světe");
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> VZOR </title> </head> <body> <script> document.write("Ahoj světe"); </script> </body> </html>
alert("Ahoj světe");
window.prompt("napište jméno","Petr Novák");
console.log("Ahoj světe");