DEV Community

Suryansh Chopra
Suryansh Chopra

Posted on

Day 2 of Training: JavaScript in browser

Yesterday was my day 2 of training in Ryaz.
The task was basically divided into different parts like:

  1. Attaching events to HTML elements
  2. Taking user input in browser
  3. Showing output in browser
  4. Making network calls to get relevant data.
  5. Error handling network calls

I learnt many things from yesterday's lesson like:

  • document.querySelector() - It returns the first element that matches a specified CSS selector(s) in the document.

  • addEventListener() - This method attaches an event handler to the specified element.

and

  • fetch() - It is useful in fetching resources across the internet.

Do you Know:

funtranslations - This website provides API translations to the users for free. There are tons of API's you can go through like "minion", "yoda", "Dothraki" and many more. It is more fun working with a API that reference meme culture. Only and most irritating downside is that it only gives 5 API calls per hour or two.

Top comments (0)