Programming Basics #14 White Space
Programming Course. The basics of Programming.
#14 White Space

Learn to code.

White Space.

Javascript, has modern programming languages, don’t care about white space.

Spaces, tabs, line breaks. This is white space, and are regard has insignificant, ignored.

So if i have a file with multiple statements. It Doesn’t matter if i start putting line breaks between the lines on the start, in the end or in the middle. This has no impact on behaviour what so ever.

In the same way, i can add a few tabs or a few spaces. This has no impact either. The language just doesn’t care.

He Ignores the white space, and just reads the characters that do occur.

He ignores the line breaks, because we use the se my colon, to tell java_script where the statements ends.