Celebrate learning and the completion of JS211

Mark Pustejovsky
2 min readAug 13, 2020

This is the final week of JS211 @AustinCodingAcademy. This week we worked a lot with API’s and API keys. It was a great learning experience to understand how data is served up, from so many different sources. On my project we worked with the Marvel Comic API.

We also learned about recursive functions, which I think has become my new favorite. They can be very powerful. Below is a simple example to show how recursion works. Note that I pass the function 3. The first time through it gets to the statement return 1+simpleRec(counter). Here it calls itself again, but with a 1 in front and the counter now at 2. It gets to that some line a second time, and then the third time through it hits the return 20 line. So the result is (1+(1+20) or 22.

This simple example can be found at: https://repl.it/join/gwkqsqos-markpky

We also covered Function Bind. bind is a method on the prototype of all functions in JavaScript. It allows you to create a new function from an existing function, change the new function’s this context, and provide any arguments you want the new function to be called with.

We also covered event bubbling. Event bubbling directs an event to its intended target, it works like this: A button is clicked and the event is directed to the button. If an event handler is set for that object, the event is triggered. If no event handler is set for that object, the event bubbles up (like a bubble in water) to the objects parent.

We discussed what is a call stack. In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program. This kind of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to just “the stack”.

Well I start my 311 class in a few weeks. Till then keep safe.

--

--

Mark Pustejovsky

Subject matter expert in P&C and electrical testing. Adding full stack development to resume to bring technology to my next employer.