Logo

Programming-Idioms

  • Python
  • Js
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".
console.log('Hello World')

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

There is also `info`, `warn`, `error`, `debug`, etc.
print("Hello World")
print('Hello World')
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");

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