« * K JavaScript: Functions
function area(w, h) {
  return w * h;
}
console.log(area(3, 4));

It prints:

12
4 Previous: Arrays6 Next: Arrow + map9 Cheat sheet
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup