8
I was doing a refactoring on a code made in the format MVC, making the code more readable, eliminating duplicated code and deleting variables and API’s that were no longer being used.
When deleting some "console.log(algo.aqui)
", I was asked why to eliminate 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 only used to validate the value of a variable, which also has its applications in both the front end and the back end of the application.
While researching not found much.
So I’d like to know:
- What are the uses of
console.log()
in the front-end - What are the uses of
console.log()
in the back-end? - What are the effects that lead to its use? What does it differ from simply passing the variable?
It’s weird to be negative without comment, especially since I haven’t broken any rules of inquiry. I genuinely want to know, even if it’s an answer like: no, there’s no other function for it.
– Paz
Also I did not understand why negative, maybe neither the person who negative understand pq. kkk
– abfurlan
@abfurlan removed the negative
– Paz
It would not be duplicated:https://answall.com/questions/38057/o-que-%C3%A9-console-log . And I was not the one who denied =D
– Marconi