title: How to generate an 8 digit string from a given short string in javascript?
body: <p>I want to generate an 8-digit string from a given short string, with a condition. The condition is that if the given string is less then 8 digits long then add 9 for the missing entries.</p>
  
  <p>Let's say, 
  the input is 123 the output should be 12399999<br>
  if 0123  then 012399999<br>
  if 01203 then 01203999<br>
  if 1230 then 12309999 and so on...</p>
  
  <p>Thanks in advance.</p>