DEV Community

Helen Kent
Helen Kent

Posted on

Learning JavaScript on Codecademy

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 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
  • 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!
    console.log(Math.ceil(43.8));
    
  • 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 https://www.codecademy.com/learn/introduction-to-javascript/modules/learn-javascript-introduction/reference

    Originally posted this on medium.

  • Top comments (0)