Computer scienceProgramming languagesJavaScriptInteraction with a browserBrowser Window

Reading user's input

Need for change

Report a typo

How should we change the following script to convert the input into the desired data type? Write the full syntax for the second line.

const input = require('sync-input');
let number = input("Enter a number: ");
Enter a short text
___

Create a free account to access the full topic