Tuesday, January 28, 2014

Intro to JavaScript

Terms that were in the lesson
  • Data types: Data types are what they are called. They are literally types of data like the ones listed below such as string, number, or boolean.
  • Strings: A letter, number, or a combination of letters or numbers that are within quotes. Any word or letter in quotes is a string like "woop woop woop 123456789"
  • Numbers: Numbers are simple, they are used to count and can be used with operators although they do not require quotes. 3, 156, 7, etc are all numbers and are used for mathematical purposes
  • Booleans: There are only two values associated with booleans, true and false. If used with operators either true or false will be the result. Things like 10 > 10 would evaluate to false but 10 > 9 would evaluate to true.
  • Comparison Operators: These are used with numbers to analyse the two depending on what comparison operator was used. They can be simple statements like 7 === 7. The comparison operators include 
    • > means greater than
    • < means less than
    • <= means less than or equal to
    • >= means greater than or equal to
    • !== means does not equal
    • === means equal to
  • Conditional Statements: These are statements that only evaluate code if they meet a certain condition giving them the name conditional statements. Statements such as if are conditional statements because code will only be evaluated if something is true.
  • Modulo Operator:
  • String Length: You can figure out the length of the string with .length and the result is the number of characters, like "aki".length has a result of 3. Also includes spaces.
  • Substring():
  • Variables:
  • Var:
I was able to finish 17/28 lessons in Getting Started with Programming. I also finished up the first SVG assignment quickly, I might have to make the link a bit more distinct but it's been set up.

No comments:

Post a Comment