Return the Sum of Two Numbers

by merganser

HTML

<!-- Create a function that takes two numbers as arguments and return their sum. -->

<div id="output">

</div>

JavaScript

//Create a function that takes two numbers as arguments and return their sum.


$(document).ready(function() {
  var output = $("#output");

  output.append("<br>" + addition(1, 2).toString());
  output.append("<br>" + addition("3", 4).toString());
  output.append("<br>" + addition(null, 5).toString());
  output.append("<br>" + addition(null, ).toString());
});


function addition(a, b) {
  return 1; //CODE HERE
}