DEV Community

loading...

Discussion on: Convert console.log() to print() in javascript

Collapse
shadowtime2000 profile image
shadowtime2000

You don't even need to do that. You can just do

const print = console.log
Enter fullscreen mode Exit fullscreen mode
Collapse
nikhilroy2 profile image
Nikhil Chandra Roy Author

yes, this also works. but. Thanks for your advice.