Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

4.8.3. Critical Input Detail¶

// EXAMPLE // 

const input = require('readline-sync');

let num1 = input.question("Enter a number: ");
let num2 = input.question("Enter another number: ");

console.log(num1 + num2);
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Critical #Input
ADD COMMENT
Topic
Name
4+6 =