Now that we have started looking at code, I want to mention a few specifics about how code will work and what it will look like on this site.
You have hopefully already noticed, during all of these first three weeks that there are specific code blocks. These should be displayed in your browser with a dark grey background and utilize a monospaced font. In theory this should look like code.
Example Code Block
This is what code will look like in your browser on this site.
This code will also be highlighted so that the syntax of the code is more apparent.
When appropriate, there will be information about what the code is you are looking at in the upper-right hand corner. Typically, for this course, this will be one of;
$
).Whenever possible and appropriate, I will also work to show you what the code output we are working on should look like. These sections will be surrounded with a big border.
Also, whenever possible, I will try to provide code output in a way that is editable, changeable, and playable, by you. There will static code blocks above the results sections, but there will also be a tab’d bar within the output section, that at a minimum will include;
If you see one of these sections, you can;
Try it below with the “Hello World!” example.
To do this;
"Hello World!"
bit in line 4,
Below many code examples, there will also be a number of links. These are, and do the following;
These links will occur underneath code examples when appropriate and available.
Within this course website, you might see long blocks, like the following. This is an example of pulling together all of these details with the “document.write” example.
[Code Download] | [View on GitHub ] | [Live Example] |