BlogPost 207

James Messina
2 min readMar 8, 2021

Austin Coding Academy

  1. Today I learned that promises {} are used to fetch data from somewhere else. They are an intermediate state of operation — in effect, a promise that a result of some kind will be returned at some point in the future. I also practices using the fetch method.
  2. The load event is beneficial to use when you don’t put a JS script at the bottom of your body. People always thought that you had to put the JS file in the head section until recently. Onload just runs when the browser gets to it while addeventlistener waits for the window to be loaded before running it.
  3. The advantages of Ajax are speed, interaction, XMLHttp request, asynchronous calls, form validation, and bandwidth usage. Disadvantages are that it increases design and development time, its complex, less security, search engines cannot index Ajax pages, browsers that have JS disabled cannot use the application.
  4. JSONP is useful for The browser makes an asynchronous GET request to the server slapping its parameters in the request query string including one named “callback”.
  • The server responds with the requested data wrapped in a function call named after the callback parameter. This function call is the “padding” in JSONP.
  • The browser then inserts the server response into the DOM via the script tag with JavaScript and this response is immediately run by the browser.
  • Your callback function that you defined before calling the service runs with the JSON data as its parameter. The data does not need to be converted or deserialized.

5. AJAX is a group of inter-related technologies like HTML/XHTML, JavaScript, DOM, XML, CSS, XMLHttpRequest etc. You can send and receive data asynchronously without reloading the web page using AJAX. AJAX allows sending only important information to the server. Only the valuable data from the client-side is routed to the server-side. It makes your application more interactive and faster.

6. Time complexity of an algorithm quantifies the amount of time taken by an algorithm to run as a function of the length of the input.

7. A recursive algorithm must call itself, recursively. A recursive algorithm must have a base case. A recursive algorithm must change its state and move toward the base case.

8. Because I have now been laid off, my next steps in becoming a web developer are to start looking at jobs and preparing my resume and cover letter. I need to network as much as possible too and practice interviewing. I am more interested in back end coding and am planning to learn more about that.

--

--