10 Most Common Javascript Coding Interviews

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.

--

--

--

Web Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to use Vue Lifecycle Hooks

Building a great scrollable list in React Native with FlatList

What to Use When Building a Custom Shopify Store

Dear for Loop Fans: Let Us Use Array Methods in Peace

Getting started with Typescript on Gatsby

How Redux Works: A Counter-Example

Power Your CSS with Lightning Design Tokens

Build a REST API with Node.js, Express, and MySQL

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abdullah Imran

Abdullah Imran

Web Developer

More from Medium

What are functions in #javascript?

Beginner’s guide to Linked List in JavaScript

My Journey Into The JavaScript Abyss

Write Bubble Sort Algorithm in Javascript