Sitemap
wheresGwen

wheresGwen

Research Assignment 4/20

1 min readApr 21, 2017
  1. this in JavaScript is the object that “owns” the current code. It is a keyword. The value of this can not be changed and it is not a variable. You use this when a new function is created and when the function is invoked.
  2. Get wheresGwen’s stories in your inbox

    Join Medium for free to get updates from this writer.

  3. You can store data locally within the user’s browser in web applications when you have a local storage. It is also very secured and a lot of data can be stored in it. It is per origin and each origin can access and store the same data. You’ll want to use this when you want to save or store a data.
  4. addEventListener() is a method that attaches an event handler to the specified element. There are also another event that is called removedEventListener() which is a method that remove an event handler that has been attached with the addEventListener() method. The document.addEventListener() is a method to attach an event handler to the document. You’ll want to use this when you want to add an event into your function.

--

--