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.
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.