Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript rupiah format

const numb = 1000000;
const format = numb.toString().split('').reverse().join('');
const convert = format.match(/d{1,3}/g);
const rupiah = 'Rp ' + convert.join('.').split('').reverse().join('')

console.log(rupiah)
 
PREVIOUS NEXT
Tagged: #javascript #rupiah #format
ADD COMMENT
Topic
Name
2+6 =