0

In JavaScript how do I return a value

VAR prompt give me an example of an adverb

10th Jul 2017, 2:32 PM
Melvin Toran
7 Réponses
+ 3
Can you show the code , we would be able to help you better then
10th Jul 2017, 3:23 PM
Utkαrsh
Utkαrsh - avatar
+ 3
var a = prompt ("noun"); var b = prompt ("adjective"); var c = prompt ("verb"); var d = a + " is " + b + " something " +c; document.write(d);
11th Jul 2017, 3:00 AM
Utkαrsh
Utkαrsh - avatar
+ 2
function myFunction(p1, p2) {     return p1 * p2;  } document.getElementById("id_value").innerHTML = myFunction(4, 3);
10th Jul 2017, 2:51 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
thanks so much everybody
11th Jul 2017, 3:01 AM
Melvin Toran
0
well I'm using treehouse to write this simple program called story. Js and in it it asks for an adverb a pronoun and an adjective so what I did was I said VAR prompt give me an example of an adjective and then VAR give me an example of a pronoun but it's not working so I'm just trying to figure out what it is I'm doing wrong
10th Jul 2017, 2:54 PM
Melvin Toran
0
create a storytelling program. 1 use the prompt command several different times to collect different types of words nouns verbs and adjectives.2 store the result of each prompt command in a different variable.3 combine the variables with other strings to create one or more non- sensical statements.4 print the resulting story to the browser using the document.write command
10th Jul 2017, 3:44 PM
Melvin Toran
0
I am still unable to get this cold to work
3rd Aug 2017, 11:14 PM
Melvin Toran