12-24-2013
|
24 | |
Zone Player
Join Date: Feb 2013
Posts: 697
|
|
|
12-24-2013
|
25 | |
Should be fixed.
Join Date: Aug 2011
Posts: 6,359
|
var orange = 5; var orangeCost = function (price) { console.log(orange * price); }; orangeCost(); I thought the point of it was that the price is always changing, hence why the function takes a parameter for the price. |
|
12-25-2013
|
26 | |
Registered User
Join Date: Sep 2011
Posts: 963
|
|
|
12-25-2013
|
29 |
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
Yes. So, for example: PHP Code:
|
12-25-2013
|
30 | |
Back from the dead?
Join Date: Feb 2013
Location: Australia
Posts: 2,533
|
|
|