LexarG56

Generation

generate functionSun, 18 Jun 2023

como agrego que un int sea para palabras

Script function comoAgregoQueUnIntSeaParaPalabras(num) { var ordinal = ["th", "st", "nd", "rd"]; var a = num % 100; return num + (ordinal[(a - 20) % 10] || ordinal[a] || ordinal[0]); }

Questions about programming?Chat with your personal AI assistant