Phrozen420
09-02-2007, 11:35 PM
Hey there, I am super new to JavaScript and don't even know where to start with this problem.
I am looking to make a conversion script that will convert lengths, volumes and weights. But the user inputs the question as follows; " How many (variable) are there in (#) (variable)?"
The script must be able to make the conversion but also validate it so that you don't end up trying to convert a length into a volume.
Can someone please direct me to what I should be doing? I am hopelessly stuck right at the moment.
I am looking to make a conversion script that will convert lengths, volumes and weights. But the user inputs the question as follows; " How many (variable) are there in (#) (variable)?"
The script must be able to make the conversion but also validate it so that you don't end up trying to convert a length into a volume.
Can someone please direct me to what I should be doing? I am hopelessly stuck right at the moment.