how to make text come up with javascript

JavaScript
prompt ("text");
Source

Also in JavaScript: