Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

node terminal readline console

before executing the command node in terminal you have to install
  :~$ npm install prompt-sync
if you havent already.
then inside node
  >const prompt = require('prompt-sync')();
  >name = prompt('What is your name? '); michael
  >console.log(`Hey there ${name}`);
Hey there michael
Comment

PREVIOUS NEXT
Code Example
Javascript :: identify primary colors in img with js 
Javascript :: init select2 jquery 
Javascript :: javaScript (DOM) HTML Element by Id 
Javascript :: react native get os 
Javascript :: run node js 
Javascript :: javascript object destructing 
Javascript :: index of an element 
Javascript :: js remove specific item from array 
Javascript :: javascript equivalent of CTRL+F5 
Javascript :: javscript match word in string 
Javascript :: length of list in javascript 
Javascript :: run code snippet 
Javascript :: node mac copy to clipboard 
Javascript :: selected value jquery 
Javascript :: deploy react app 
Javascript :: using regex in javascript 
Javascript :: http module in nodejs 
Javascript :: jQuery Effects - Fading 
Javascript :: json array in hidden field not coming 
Javascript :: angular implementing Validator 
Javascript :: reverse sort array of objects 
Javascript :: owl timeout loop 
Javascript :: model nodejs 
Javascript :: prevent duplicate entries in javascript array 
Javascript :: js entries 
Javascript :: javascript export to pdf 
Javascript :: javascript createelement innerhtml 
Javascript :: how convert string to int javascript 
Javascript :: react semantic button 
Javascript :: javascript get current window location without parameters 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =