English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how do i write in javascript the following statement: James is X years old. Next year James will be Y years old. I know you have to add and assign variables to it but im not sure exactly how? I just started learning javascript. if someone would be kind enough to write the command in their answer would be very much helpful.

2006-10-03 08:51:42 · 3 answers · asked by infiniti1113 3 in Computers & Internet Programming & Design

3 answers

that sounds like simple math.

are you getting the X from user input?

if so, all you need to do is:



2006-10-03 09:37:42 · answer #1 · answered by John J 6 · 0 0

Open Notepad...

Paste the code below:







Age Test






















if you don't get help here with that two really good places to ask javascript questions are

http://www.codingforums.com/
http://www.sitepoint.com/forums/

2006-10-03 08:55:12 · answer #3 · answered by Anonymous · 0 1

fedest.com, questions and answers