r/javascript • • Jan 28 '12

how come javascript doesn't have printf?

0 Upvotes

13 comments sorted by

View all comments

7

u/greut Jan 28 '12

Maybe because JavaScript was designed to be run into an environment without any stdout/stderr - where should it print it by default? meh.

If you wanna talk about the f part of your question, they never had to think about it maybe.