Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to console.log while using a prompt in javascript

var name = prompt("Name?");
console.log("Hello " + name);

// Force a 10 millisecond delay before running the rest of the code.
setTimeout(function(){
  var age = prompt("Age?");
  console.log(name + " is " + age + " years old");
}, 10);
Comment

PREVIOUS NEXT
Code Example
Javascript :: find only vowels in string Javascript 
Javascript :: angular generer guard 
Javascript :: how to filter on a hidden column datatables 
Javascript :: javascript escape quotes 
Javascript :: angular error ng0303 ngForIn 
Javascript :: for (var i = 0; i < 10; i++) { setTimeout(function () { console.log(i) }, 10) } What 
Javascript :: npm ln 
Javascript :: javascript count occurrences of word in string 
Javascript :: liste des mois javascript 
Javascript :: jhipster success alert 
Javascript :: what is from npm 
Javascript :: force light theme in react native 
Javascript :: how to store and extract local storage 
Javascript :: nsenter 
Javascript :: nodejs optimizing compuler try catch 
Javascript :: open modal window at present cursor position javascript 
Javascript :: external javascript files can be cached 
Javascript :: trim unsafe url dom sanitizer 
Javascript :: react enzyme mount ReferenceError: is not defined 
Javascript :: yellow fever mosquities 
Javascript :: moment add days non destructive 
Javascript :: google app script column to array indexOf 
Javascript :: Maths help you save money 
Javascript :: get the first value when mapping through the array 
Javascript :: javascript 2 decimal float array elements 
Javascript :: extendscript unzip file 
Javascript :: use state vs use ref 
Javascript :: get minutes with 2 numbers 
Javascript :: how to fix eslint jsx not allowed in js 
Javascript :: Say Hello Say Bye in javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =