New course! Every coder should learn Generative AI!
Try a free lesson0
Curly brackets
Hello World! In this example (shown below), we are closing the curly brackets and reopening the because if and else are 2 different statements right? To be sure here! Thank you
1 Answer
+ 1
The curly brackets are to show, which istructions belong to which statement. So everything the program should do if something is true is in the brackets after "if".
Same with else.