RosettaCodeData/Task/User-input-Text/JavaScript/user-input-text-1.js

9 lines
200 B
JavaScript

WScript.Echo("Enter a string");
var str = WScript.StdIn.ReadLine();
var val = 0;
while (val != 75000) {
WScript.Echo("Enter the integer 75000");
val = parseInt( WScript.StdIn.ReadLine() );
}