I was doing a refactoring in a code made in the MVC format, leaving the code more readable, eliminating duplicate code and deleting variables and API's that were no longer being used.
By deleting some " console.log(algo.aqui)
", I was asked why I deleted them, I promptly replied that it was something that one of the thousands of programmers who had already moved there had forgotten after checking and validating some value in the console.
He informed me that console.log()
is not something used only to validate the value of a variable, which also has its applications on both the front end and the back end of the application.
When searching I did not find much.
Then I would like to know:
- What are the
console.log()
utilities in the front-end - What are the
console.log()
utilities in the backend? - What are the effects that lead to its use? What does it differ from simply passing the variable?