print to screen 1

print to screen

let x = 10;
print('The value of x is ' + x);
// prints "The value of x is 10"

Here is what the above code is Doing:
1. The first line declares a variable named x and assigns it the value 10.
2. The second line calls the print() function, which prints a string and a number (the value of x).

Similar Posts