Currently, I am diving into practicing javascript coding on CodeAcademy. While testing out my code in Codeacademy, I rely on console.log to display strings to the built-in browser within the platform. Everything runs smoothly there. The challenge arises when I test the exact same piece of code in Dreamweaver text editor and try to output it to the browser - it shows nothing until I switch to using document.write.
Subsequently, I came across information stating that utilizing document.write in production code is not advisable! Could someone shed some light on this?
Moreover, during a recent JS free meeting I attended, it was emphasized that incorporating something like prompt("La di da"); is also discouraged in professional projects.
If anyone is willing to spare some time and knowledge to explain why these features are included in JS but not recommended for use, or why they malfunction when implemented, I would greatly appreciate it.