|
-
if else doesn't work
this does not work
what is wrong with it
making a program that conjugates Spanish verbs
var pronoun = prompt("What is your pronoun(put yo, tu, el, etc.)");
var verb = prompt("What is your verb");
var last = verb.substring(verb.length-2)
var first = verb.substring(0,verb.length-2)
var type = verb.substring(verb.length-2,verb.length-1);
if (pronoun === yo && type === a) {
alert(first + "o");
};
else if (pronoun === yo && type === e) {
alert(first + "e");
};
else (pronoun === yo && type === i) {
alert(first + "o");
};
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks