Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
As soon as we leave that line, the rest of our code will be processed as normal. You can actually use those two forward slashes and even put them after an existing line, but it is more common to put them before the code that they are meant to be applying to. So if I was trying to split up some of my code here, I might say that this section was my Boolean variables and this previous one was my numeric variables. Obviously, these are pretty sel explanatory here.
It's quite common that you will also see a blank line before the comment because it just makes it much more visible. Now what you can also do are create what are called multi-line comments. While we could use multiple lines just with two forward slashes on it, what we can also do is use a /* and now everything is a comment until we get to */.
I only tend to use the multiple line format to comment out large chunks of code when I'm testing. Everywhere else I tend to use the single-line format just with the two forward slashes and that's what I'll be using for most of this course.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98235 Viewers
61 Video lessons · 85544 Viewers
71 Video lessons · 69495 Viewers
56 Video lessons · 101838 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.