What are 3 main parts of Javascript engine?
* We bring the data with us from when the function was born to wherever it goes hidden in the backpack
• Promises are invoked when there is initiated background web browser work/functionality and a place to store data in Javscript memory
• There is a placeholder object on JavaScript
• Fetch creates a promise object ( that object contains value and hidden property) and also sets up network request in web browser feature
• OnFulfillment is the hidden property of Promises ( also onRejection)
• Promise objects will automatically trigger the attached function to run (w/ the input being the returned data)
• We will call THEN method upon completion. .THEN gets a function into the unfulfilled array (Then can be considered “Run Later” )
o Any code we want to run on the returned data must also be saved on the promise object
• Promises you that it would let you know when such browser functionalities end, exits and could also provide you a way to return values