Related questions
Need to generate prime numbers in JavaScript
I am writing a JavaScript to generate prime numbers from 2 to 100. However It doesn't work and can't figure it out.
will you help me please?
var array = new Array(100);
for (var i=2 ; i<=array.length-1; i++) {
if((i%2===0) || (i%3===0))
…
Run a bat file from javascript
I'm trying to run a bat file using javascript. I've tried using powershell but it didn't seem to work properly. Here is the code I tried:
var oShell = WScript.CreateObject("WScript.Shell");
oShell.Exec("D:");
oShell.Exec("cd dir");
oShell.…