Skip to content

cotrPrint

Prints a message to the console

Aliases:

  • cotrPrint
  • print
  • log
  • systemOut
  • write
  • consoleLog

cpp

#include <iostream>
std::cout << "Your message here" << std::endl;

csharp

Console.WriteLine('Your message here');

dart

print('Your message here');

go

fmt.Println(message)

haskell

putStrLn 'Your message here'

java

System.out.println('Your message here');

javascript

console.log('Your message here');

javascriptreact

console.log('Your message here');

kotlin

println('Your message here')

perl

print 'Your message here\n';

php

print('Your message here');

powershell

Terminal window
Write-Host 'Your message here'

python

print('Your message here')

r

print('Your message here')

ruby

puts 'Your message here'

rust

println!("{'Your message here'}");

scala

println('Your message here')

shellscript

Terminal window
echo 'Your message here'

swift

print("Your message here")

typescript

console.log('Your message here');

typescriptreact

console.log('Your message here');