Do I do this:
function multiply(num1,num2) {
let result = num1 * num2;
return result;
}
Or do I do this:
function multiply(num1,num2) {
return num1 * num2;
}
And is there a speed difference between them or more memory efficiency?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Do I do this:
function multiply(num1,num2) {
let result = num1 * num2;
return result;
}
Or do I do this:
function multiply(num1,num2) {
return num1 * num2;
}
And is there a speed difference between them or more memory efficiency?