What I learned today
(1) I double check my concept are correct or not, one of it is
"If there are 2 Async function, the first setTimeOut is 0 sec, the second one is 1 sec, but if the first function needs to use 1 hour to finish it, will the second Async function finish first?
The answer is no, because the 2nd one needs to wait in line in the queue, waiting for the event loop to call it.
(2) ++1 Problem
(3) Lexical scoping (var): from when they’re declared until when their function ends ○ Block scoping (const, let): until the next } is reached
(4)Immediately Invoked Function Expression ● A function expression that gets invoked immediately ● Creates closure ● Doesn’t add to or modify a global object.
(5) Some of the API is hard to request
(6) You can use app.js to request also can use write a request function in index.js.
(7) I need to use live-server to run localstorage, although I still don't know why.
(8)Us Test Driven Development is good if we want to be a developer
(9) var only exist in the function, but he doesn't need to worry if the value disappear, he exists when the function end but let will worry about it, he will die when he touches the }
Tomorrow question:
(1) API question
(2)
Tomorrow plan:
(1) Do the Q1 project, at least has some blueprint, maybe Yelp API IS a good idea.
(2) API videos
After I watched some Harvard online class, I gradually figure out why the decent school student is better than us, they use 2 hours to teaches all the concepts which we might need to learn 1 month. But my review is basic foundation is very important if I went to the best university maybe I also can't catch up with the curriculum, I really need to focus on I truly learn something, but not just watched all the video, also indeed, learning by doing is important
No comments:
Post a Comment