swift print to console code example

Example 1: how to print to console javascript

console.log("string")

Example 2: c# print to console

Console.WriteLine("This is C#");

Example 3: print things in swift

print("Hello World")
print("Hello Again") 
//prints Hello World, and then Hello Again on a new line
//Hello World
//Hello Again
print("Hello World", terminator="")
print("Hello Again")
//prints Hello World and then Hello Again on the same line
//Hello WorldHello Again
print(123.45)
//prints 123.45
var message: String = "Hello"
print(message)
//prints Hello