📜  javascript代码示例中的hello world

📅  最后修改于: 2022-03-11 15:03:43.700000             🧑  作者: Mango

代码示例6
console.log("Hello World");
//This is a backend process you can see when you go to the console page in inspect panel and executing the code.

alert("Hello World"); //Or window.alert();
//This will show a dialog containing Hello World.

document.write("Hello World");
//This is the common way of displaying text content in a Web page using JS.