Simple Javascript Number Converter which is converting number into indonesian words. It's javascript version of this algorithm by @rioastamal
Include the terbilang.js to your HTML or web page file, Then it's ready to run. Or you can install via bower by run:
bower install terbilang-js
Or via NPM
npm install terbilang-js
// Return String
terbilang(1000); // Seribu
// Try with alert
alert(terbilang(9000)); // Sembilan Ribu
// Or use console
console.log(terbilang(5000000)); // Lima Juta
You can download terbilang.js as a Vue Filter here. Check it out!
Semoga bisa jadi modal buat pecah telor di pasar lokal :v .
Just Contact Me At:
- Email: bosnaufalemail@gmail.com
- Skype Id: bosnaufal254
- twitter: @BosNaufal
MIT Copyright (c) 2016 - forever Naufal Rabbani