I need some codes to create a program.
I want a do something like this. when you write something down in your prompt like; i have stomac hurt i'd like to get the answer like aspirine, or tylenold or whatever. I traied something like this
<HTML>
<BODY>
<SCRIPT LANGUAGE=JavaScript>
var loco = prompt("plise enter the problem that you have");
var edad = aspirine;
if (stringloco == stringedad)
{
document.write("aspirine");
}
</SCRIPT>
</BODY>
</HTML> but i dont get what i want; if i change the value of variable "edad" to a number i get the result of my "if statement"
but only with numbers can somebody givme a hang with this please.
thanks
[email protected]