Logo

Programming-Idioms

  • C++
  • Rust
  • Js
console.log('Hello World')

"... The console object provides access to the debugging console".

There is also `info`, `warn`, `error`, `debug`, etc.
console.log('Hello World');

This prints output to the console on any standard browser.
document.write("Hello World!");

This prints the output to the rendered browser document.

However, this method is "strongly discouraged".
#include <iostream>
std::cout << "Hello World" << std::endl;
println!("Hello World");
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");

New implementation...
< >
programming-idioms.org