Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Finally, the course compares how code is written in several different languages, the libraries and frameworks that have grown around them, and the reasons to choose each one.
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.
Find answers to the most frequently asked questions about Foundations of Programming: Fundamentals.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.