Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Multiply (Intro) by Sim0000
import assert from "assert";
function multTwo(a: number, b: number): number {
return a * b;
}
console.log('Example:');
console.log(multTwo(3, 2));
// These "asserts" are used for self-checking
assert.equal(multTwo(3, 2), 6);
assert.equal(multTwo(0, 1), 0);
console.log("Coding complete? Click 'Check' to earn cool rewards!");
April 24, 2020
Comments: