Coding Problem Using Script
How can i fix this coding:
Script Mad Lib: ReferenceError: Exclamation1 is not defined ( @ 26 : 68 ) - carf hat and " + vegetable1 + " to complete Mr " + person + " ! " + Exclamatio
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How can i fix this coding:
Script Mad Lib: ReferenceError: Exclamation1 is not defined ( @ 26 : 68 ) - carf hat and " + vegetable1 + " to complete Mr " + person + " ! " + Exclamatio
here it my entire coding:
// get name from service, name is entered in the app
var adjective = request.get("adjective");
var adjective1 = request.get("adjective1");
var color = request.get("color");
var verb = request.get("verb");
var adjective2 = request.get("adejective2");
var vegetable = request.get("vegetable");
var Exclamation = request.get("Exclamation");
var verbing = request.get("verbing");
var verbing1 = request.get("verbing1");
var noun = request.get("noun");
var verb1 = request.get("verb1");
var adjective3 = request.get("adjective3");
var number = request.get("number");
var verb2 = request.get("verb2");
var noun1 = request.get("noun1");
var noun2 = request.get("noun2");
var vegetable1 = request.get("vegetable1");
var person = request.get("person");
var Exclamation = request.get("Exclamation1");
var adjective4 = request.get("adjective4");
var noun3 = request.get("noun3");
// put together the mad lib string
var greetingString = "Let’s build a snowman. First we need to have a really " + adjective + " snowstorm of course on a " + adjective1 + "day. Watching all that " + color + " snow fall makes me " + verb+ " for a bow of " + adjective2 + vegetable+"!" + Exclamation + " its still " + verbing + " and theres a lot of it. Lets go. Next is " + verbing1 + " to go out in the cold. Once that is done we need to get busy. We make a " +noun + " and " + verb1 +" it in the place. Its get so " + adjective3 + " we ca not roll it anymore. Then we do " + number + " more and stack them on top of each other. We" + verb2 + " for " + noun + " in the driveway for the " + noun1 +" eyes and" + noun2 + ". Mom gives us a scarf hat and " + vegetable1 + " to complete Mr " + person + " ! " + Exclamation1 + " he is done. Finally. Now the best part " + adjective4 + noun3 + ".";
// format as JSON and return the response
response.success(JSON.stringify({
greeting: greetingString
}), "application/json");
Could you give us more details? Post your code and clarify what are you trying to do?