DEV Community


Learning JavaScript on Codecademy

Helen Kent
School of Code, Birmingham Graduate
・1 min read

Here is a list of things I learned/googled that I don’t want to forget:

  • An instance is an object that has been created and exists in memory
  • Operators are symbols that are used to perform operations
  • Methods are actions that you can perform
  • Codeacademy uses ‘append’ a lot, which I never say. Googled it to check…means add onto the end!
  • You can find properties and methods of different objects in the JavaScript documentation e.g. the Math object
  • Generate a random number between 0–100
    console.log(Math.random() *100); 
  • …and then round it to the nearest whole
    console.log(Math.floor(Math.random() *100));
  • I used the documentation to find this next bit, woo!
  • This returns the smallest integer greater than or equal to a decimal num.
  • You can write single line comments with //blah blah
  • You can write multiple line comments with /* blah blah blah blah blah blah */
  • There are 7 fundamental data types in JavaScript: strings, numbers, booleans, null, undefined, symbol, and object.
  • All the details from the Intro to JavaScript module can be found here

    Originally posted this on medium.

  • Discussion (0)

    Forem Open with the Forem app