![]() If you later add a statement that you want to include in the block of code, but forget to add the necessary curly brackets, the statement are not executed as part of the loop.forThe for loop allows you to iterate through a variable for a specific range of values. Although you can omit the curly brackets if the block of code contains only one statement, this practice is not recommended for the same reason that it is not recommended for conditionals: it increases the likelihood that statements added later are inadvertently excluded from the block of code. Adobe recommends that you always enclose the block of code in curly brackets (). Looping statements allow you to perform a specific block of code repeatedly using a series of values or variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |