While curly brackets are mainly used to group several lines of codes, it will still work without error if you used it for a single line. Some programmers prefer this method as a way of organizing codes to make it look clearer, especially in conditional statements.
Related posts
-
BESTFY Pagamentos (Payment) Gateway Integration in PHP
BESTFY Pagamentos (Payment) is a Brazilian payment gateway that allows merchants to accept payments using a... -
Artificial Intelligence (AI) Multiple Choice Questions
Are you ready to test your knowledge of artificial intelligence (AI)? This set of 50 multiple-choice... -
Agile vs Waterfall: Know the Difference Between Methodologies
The main difference between Agile vs Waterfall is that Agile methodology is a continuous and iterative...