November 2017
Intermediate to advanced
386 pages
9h 22m
English
What are side effects? We can define those as some change in state, or some interaction with outside elements (the user, a web service, another computer, whatever) that occurs during the execution of some calculations or process.
There's a possible misunderstanding as to the scope of this meaning. In common daily speech, when you speak of side effects, it's a bit like talking of collateral damage--some unintended consequences for a given action. However, in computing, we include every possible effect or change outside the function. If you write a function that is meant to do a console.log() call to display some result, that would be considered a side effect, even if it's exactly what you intended the function to do in the first ...