05/10/2011
What does this function do?
function num_abbrev_str(n) {
return n + ((Math.floor(n / 10) == 1) ? "th" : ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"][n % 10]);
}
Start from scratch learning. Learn with us from ground to top.
Cebu City
Be the first to know and let us send you an email when Level 1 posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.