cachaito
10/24/2014 - 5:45 PM

Show the function result with innerHTML

function sum(a,b) {
  return a + b;
}

document.getElementById('sum').innerHTML = sum(2,3);