logo
Search
showing results for - "javascript money to arab currency"
Lacey
23 May 2017
1function eArabic(x){
2  return x.toLocaleString('ar-EG');
3}
4
5console.log(eArabic(123456.789));
6// expected output: "١٢٣٬٤٥٦٫٧٨٩"
7
8console.log(eArabic('123456.789'));
9// expected output: "123456.789"
10
11console.log(eArabic(NaN));
12// expected output: "ليس رقم"
13
14
similar questions
how to convert entered number into currency in words in javascriptjavascript format number as currencynode js arabic number to english numberjs string encode decode arabicpersian number to english jsjavascript get currency symbol by currencycodejavascript format currencyformat money jsmoney formatting javascriptjavascript currency converterdisplay amount with currency for jqueryformat currency javascriptjavascript currency number format indonesiajavascript currency formatmake the currency symbol display in suffix jsjavascript get currency symbol from localejavascript number format indonesiajs date in arabicjavascript number format indian currency
queries leading to this page
javascript money to arab currencyjavascript money to arab currency
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue