#!/usr/bin/env node; /****************************************************************************** * This program demonstrates how to prompt the user for input. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ const Utils = require('./Utils'); const main = async () => { const NAME = await Utils.prompt("What is your name? "); const FAVORITE_COLOR = await Utils.prompt("What is your favorite color? "); console.log(Utils.format("Hello, {0:s}! I like {1:s} too!", NAME, FAVORITE_COLOR)); } main().catch( e => { console.error(e) } );