JavaScript is a front-end programming language used for web development.  It is a scripting language, so it does not need to be compiled. Because JavaScript executes on the client-side, it enables interactive web pages that instantaneous response to the user.

JavaScript can be used to change, create, or destroy HTML and CSS code.

Example JavaScript Code:

 

function randNum (min, max) {
  min = Math.ceil(min);
  max = Math.floor(max);
  return Math.floor(Math.random() * (max - min + 1)) + min;
}
function generate () {
     let min = document.getElementById('min_value').value;
     let max = document.getElementById('max_value').value;
     let rand = randNum(min,max);
     document.getElementById("output").innerHTML = rand;
   }