10 Most Common Javascript Coding Interviews

Abdullah Imran
3 min readNov 5, 2020

--

Photo by Headway on Unsplash

Coding is a basic part of programming job interviews, Javascript interviews are no exception. Here I make a list of the 15 most common Javascript programs for Job Interviews, which is very useful to prepare before appearing on any Javascript interviews.

1. Fibonacci series

Write a Javascript program that will take input and print the Fibonacci series(1 1 2 3 5 8 13 … .) up to user input.

2. A prime number

Write a Javascript program that will take input and check the given number is prime or not. Just to remember, a prime number is not divisible by any other number. Example: 13, 11, 7

3. Factorial

Write a Javascript program that will take input and Calculate Factorial.

Note: Factorial five meaning 1 × 2 × 3 × 4 × 5. Factorial zero is defined as equal to 1.

4. Reverse a String

Write a Javascript program that will take input and reverse the input. N.B Input Must be a string.

5. Count the number of words in a string

Write a Javascript program that will count the total number of words in a string. Remember words and letters are different.

6. Remove duplicate item

Write a Javascript program that will remove the duplicate item from an array.

7. Sum of the array element

Write a Javascript program that will make Sum of all numbers in an array.

8. Find the largest string

Write a Javascript program that will find the largest string of an array.

9. Find the largest Number

Write a Javascript program that will find the largest number of an array.

10. Find the largest number using for loop

Write a Javascript program that will find the largest number of an array. In that particular case, you will use for loop.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response