Anonymous user
Arithmetic evaluation: Difference between revisions
m
→{{header|JavaScript}}: Move return statement to more logical position
m (→{{header|JavaScript}}: Move return statement to more logical position) |
|||
Line 2,074:
}
return '' + s;▼
function multiply(s, b) {
b = s.split('*');
return b[0] * b[1];
}
▲ return '' + s;
function divide(s, b) {
|