Code Academy pt.II

Because I liked Code Academy sooooo much, I decided to do my first more immediate tutorials with their tutorials. 

The first thing that piggy banks off of booleans is using the funny looking moustache brackets: { and }

The brackets are used together with true or false statements.

for example

for your true/false statement
if “Randy_Lee”.length > 8 

When the statement randylee.length greater than 8 is true, whatever happens in the { } that follows it will happen. If you put a string in the { }, the string will display. If your statement before the curly brackets isn’t true, it will skip the statement inside the brackets completely and move on to the next lines of code.

Also, another great aspect of Code Academy is it’s section on debugging. It’s great to let noobs like me know that if I did get a career in coding, I might have to debug. It has a part where they use a lot of wrong syntax and it’s up to you, the noob coder, to fix all of the mistakes like parenthesis in wrong places or the curly mustache brackets.

Image

 

Well that’s all for today. 2 posts…. phew. 

Following the directions on the website are a bit hard so I also wouldn’t suggest this for newbies. I still stand by the reason that if you’ve never coded before in your life that you should at least take a class first. After you get down the logic and syntax down, it makes these websites sooo much easier to understand and learn from. 

Leave a comment