3 ms·
Ask ten people to write a hello world in js, and they all will do it, and do it the exactly same way - this is great for a production language. On that point, J
by baybal2 10y ago
Ask ten people to write a hello world in js, and they all will do it, and do it the exactly same way - this is great for a production language. On that point, JS is as good as C/Cxx
The downside - ask 10 people for an example of proper use of advanced oop in js, and out of these 10 you will get 5 passible anwers all of which will be drastically different - horrid thing for production
- g00gler 10y agodocument.write("hello world"); document.querySelector("body").innerHTML = "hello world"; alert("hello world"); prompt("hello world"); console.log("hello world"); console.info("hello world"); console.warn("hello world"); process.stdout.write("hello world");
- paulddraper 10y agoHow many ways do people write Hello World in C, Java, Ruby, Python?
- purity_resigns 10y agofor letter in 'hello world?': print(letter, end='')
- paulddraper 10y agoHm, yes, I think I have seen that once on HN.