Hacker News new | ask | show | jobs
by hulitu 1233 days ago
>Most computing devices include a web browser with a JavaScript interpreter.

A web browser is not a computer. They are working hard to make it one, but they are just not there yet. /s

1 comments

I was responding to "a BASIC interpreter used to be included", pointing out that although BASIC may no longer be shipped with every PC, JavaScript usually is.

Your point is well taken though - JavaScript, while arguably more powerful than BASIC in many ways, usually doesn't allow the same low-level hardware access that Microsoft (and other) BASIC implementations once did. Nonetheless it's often possible to write pretty good, full-screen games in JavaScript with sound, 2D and 3D graphics, network capability, and even game controller support.

And while BASIC could call out to assembly language, JavaScript can call out to WASM.