title: Check whether a number is divisible by another number If not make it divisable in Javascript
body: <p>I want to check whether a number (7) is divisible by another number (5), If the number is divisible by the number then I need to return the same number. If the number is not divisible by another number I need to make it divisible and return the updated value.</p>
  
  <pre><code>var i =7;
  if (i % 5 == 0) {
   alert("divisible by 5");
  } else {
      alert("divisible not by 5");
  } 
  </code></pre>
  
  <p>Here if the condition satisfy then I need to return the same value. If the condition is not satisfied I need to add the required number and make it next divisible. (Like 7 is not divisible by 5 so I need add 3 to 7 and return the value 10 which is divisible by 5).</p>
  
  <p>Are there any Math functions exists to implement the same? </p>