-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
19 lines (19 loc) · 694 Bytes
/
main.js
File metadata and controls
19 lines (19 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";
// import {fullName} from "./module.js";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// console.log(fullName());
// import fullName from "./module/namemodule.js";
const inquirer_1 = __importDefault(require("inquirer"));
const answers = await inquirer_1.default.prompt([
{
name: "Sentence",
type: "input",
message: "please enter the paragraph to count the words"
}
]);
const words = answers.Sentence.trim().split("");
console.log(words);
console.log(`the total words are ${words.length}`);