Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
It is one ++ operator, the increment operator, the ability to add one to a variable. So you can't put a space in the middle of that, same with a --, same with operators like += or -=. You can't put a space in the middle of this just the same way you can't put the space in the middle of var or alert or prompt or a variable name. Now the second place whitespace matters is inside a string. There's a difference between what, space, is, space, your, space, name, and adding a few more spaces to it and that's because we want spaces to matter inside a string.
I type in Simon, I click OK, and we get the rather ugly looking message HelloSimon. Well, that's simply because I'm concatenating or combining two strings together here. I've created a variable called message that says Hello and then I'm adding the word Hello and whatever name was typed in and popping that up as an alert box. But really what I want is Hello, space, and then the name. So this would be another reason we would want this space regarded as significant.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98482 Viewers
61 Video lessons · 85764 Viewers
71 Video lessons · 69669 Viewers
56 Video lessons · 101993 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.