We have used multiple libraries so far like jQuery, React and underscore. For frameworks I'm not sure but I think we can consider react, angular and backbone as frameworks. The difference between these terms is mainly about the inversion of control; where your code calls a library function when needed to accomplish a certain task like calling underscoe.js functions. However, it's different for frameworks where your code will be called by the framework itself, and it's regularly more complex.
I think that everybody knows what while means, right? Imagine you want to do something for a 'while' :) You're gonna need to repeat that thing for a number of times; limited or unlimited. For example, if you wanted to do something from your daily life like drinking water 7 times each day you're going to do a task (i.e process) for seven times and you're going to decrease that number each time you drink water. Before you start drinking, the number of times would be seven. So, a condition to check to stop drinking would be great. Like when the number of times is less than seven -> continue doing this process (drinking water) and increasing the number of times you have drank by one. Once the number of times reaches seven -> stop this process. Hope that helped clear the picture even if it was a little bit.
Comments
Post a Comment