Hello, world: |
window.document.write(Hello, world!); // window window .
function myFunction() {
document.getElementById("demo").innerHTML = "Hello, world!";
}
@echo OFF
:setfind
set /p s="Find: "
"C:\Program Files\Mozilla Firefox\firefox.exe" ^
https://www.google.ru/search?q="%s%"
GOTO setfind
JScript uses the alert, confirm, and prompt message boxes of the browser to obtain input from your user. The boxes are methods of the window object. Because the window object is at the top of the object hierarchy, you do not actually need to use the full name (for example, window.alert()) of any of these message boxes, but it is a good idea to do so because it helps you remember to which object they belong.
trace('Hello World!'); // , ?
template
class Hello
{
public:
Hello(T hello)
{
std::cout << "Hello, " << hello << std::endl;
}
};
template <>
class Hello
{
public:
Hello()
{
std::cout << "Hello, world!" << std::endl;
}
};
int main(void)
{
Hello();
return 0;
}