by fergie · 3y ago · 0 comments
var fso = new ActiveXObject("Scripting.FileSystemObject");
rather than var fs = require('fs') // (or the appropriate ES6 incantation)
?And the former windows version is JScript which is an implementation Javascript just using an different name for trademark reasons, but tied to an old version of the JavaScript standard (which is confusingly called "ecmascript" officially), plus some Windows-specific integrations, like ActiveXObject and COM/OLE support.
(There's also a later .NET version of JScript to add to the confusion).