Write a javascript function that takes two arguments and should either sum them or just print the first one if the second one is undefined. If both are undefined print "No numbers given"

JavaScript
Write a javascript  function that takes two arguments and should either sum them or just print the first one if the second one is undefined. If both are undefined print "No numbers given"
Source

Also in JavaScript: