JavaScript DOM Tutorial #15 JavaScript functions [ with Source Code ]

What is JavaScript functions?
A JavaScript function is a block of code to perform a particular task.
JavaScript functions Example:
function myFunction(x1, x2) {
  return x1 * x2; // The function returns the product of x1 and x2
}
By watching the whole video you can easily understand the JavaScript Functions.


EmoticonEmoticon