export const askNameAndGreet = () => {
const name = readlineSync.question('Please enter your name: ');
console.log(Hello, ${name}!
);
}
const readlineSync = require('readlineSync');
import readlineSync from 'readline-sync';
- You need to install the module readline sync and import it
*
- Only one import string should be added to helper.js.
*
- Don't change solution.js.
- */
import { askNameAndGreet } from './helper.js'
askNameAndGreet();
i have installed readlineSync and imported but I am getting error which says
Test suite failed to run SyntaxError: /app/83861_db1b2f14-ace8-434f-8fd2-f8e427d385c8/helper.js: Identifier 'readlineSync' has already been declared. (9:7)