0
In JavaScript how do I return a value
VAR prompt give me an example of an adverb
7 Respostas
+ 3
Can you show the code , we would be able to help you better then
+ 3
var a = prompt ("noun");
var b = prompt ("adjective");
var c = prompt ("verb");
var d = a + " is " + b + " something " +c;
document.write(d);
+ 2
function myFunction(p1, p2) {
return p1 * p2;
}
document.getElementById("id_value").innerHTML = myFunction(4, 3);
+ 1
thanks so much everybody
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
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
0
I am still unable to get this cold to work