The Print Function
The Print Function is a function designed to print stuff.
Examples are
let x = "Hi";
print(x);
// returns "Hi"
This code shows that we can use a variable as a parameter for print
let age = "9";
print("My Son's age is: " + age);
This code shows that we can also use both a string and a variable in print
Last updated