Blog Post 207

Christopher Trevino
2 min readJul 26, 2020

I’ve learned that fetch is extremely interesting, It’s really cool how you can communicate with a pre-made API. It’s extremely surprising the amount of info you can work with. The load event fires at the end of the document loading process. At this point, all of the objects in the document are in the DOM, and all the images, scripts, links and sub-frames have finished loading. To execute anything post document load, we fire these events. The XMLHttpRequest object is part of a technology called Ajax (Asynchronous JavaScript and XML). Using Ajax, data could then be passed between the browser and the server, using the XMLHttpRequest API, without having to reload the web page. Ajax requests are triggered by JavaScript code; your code sends a request to a URL, and when it receives a response, a callback function can be triggered to handle the response. Because the request is asynchronous, the rest of your code continues to execute while the request is being processed, so it’s imperative that a callback be used to handle the response. Well, browsers have a caveat. You aren’t allowed to call other servers from your JS, but you are allowed to include a script from another server. You probably already do this with jQuery. Most people include a script tag to get jQuery hosted from Google rather than hosting it themselves. Time complexity of an algorithm signifies the total time required by the program to run till its completion. The time complexity of algorithms is most commonly expressed using the big O notation. Like the robots of Asimov, all recursive algorithms must obey three important laws: A recursive algorithm must have a base case . A recursive algorithm must change its state and move toward the base case. A recursive algorithm must call itself, recursively. As far as a web developer I see myself succeeding I reach a point where I’ve learned so much info about web development. It’s something I will never leave alone.

--

--