shrimanwar92 / javascript-interview-programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript-interview-programs

Test 1

Implement a credit card masker that replaces all but the 1st and last 4 digits in the provided sequence

Should not mask input shorter than 6 characters

Should not mask non-numeric characters

Test 2 (number-to-words)

Implement a function that takes number input and print it in words.

For example, 14567 should return Fourteen thousand five hundred sixty seven.

Should at least convert 7 digits.

Test 3 (max-char)

Given a string, return the character that is mostcommonly used in the string.

--- Examples maxChar("abcccccccd") === "c" maxChar("apple 1231111") === "1"

About


Languages

Language:JavaScript 97.0%Language:HTML 1.8%Language:CSS 1.2%