Using the print() instruction

Using the print() command will print anything between the brackets to the Debug area.

Enter the following code and run it:

// This will print the ratingResult to the Debug area
print(ratingResult)

The value of ratingResult appears in the Debug area:

When you're just starting out, feel free to use as many print() statements as you like. It's a really good way to understand what is happening in your program.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.174.174