Does Javascript require indentation?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does Javascript require indentation??

23rd Sep 2016, 4:04 PM
Chitrarth Sahai
Chitrarth Sahai - avatar
2 Answers
+ 4
Python is one of the only languages where indentation is meaningful for the program. That said, in other languages, while it's not required, indentation helps you and others to read your code more easily. You even have some text editors that can indent your code properly for you, like emacs (providing you configure it accordingly).
23rd Sep 2016, 4:21 PM
Zen
Zen - avatar
0
it's not required but it's highly recommended as it make's life easier when recognising certain parts of code, when checking and rectifying bugs or when someone else needs to access your code etc...
23rd Sep 2016, 4:13 PM
Baillie O'grady
Baillie O'grady - avatar