โœ๏ธ Content byMd. Rakibul Islam
1

Write a function that reverses a string without using the built-in reverse() method.

โ†’
2

Write a function that finds the largest number in an array without using Math.max().

โ†’
3

Write a function to check if a given string is a palindrome (reads the same forwards and backwards). Ignore case and non-alphanumeric characters.

โ†’
4

Write a function that removes duplicate values from an array and returns the unique elements.

โ†’
5

Write a function that returns the first N numbers of the Fibonacci sequence.

โ†’
6

Write a function that counts the frequency of each character in a string and returns it as an object.

โ†’
7

Write a function that checks whether a given number is prime.

โ†’
8

Write a function that returns the factorial of a non-negative integer.

โ†’
9

Write a function that checks if a given number is an Armstrong number (sum of its own digits each raised to the power of the number of digits equals the number).

โ†’
10

Write a function that swaps two variables without using a third temporary variable.

โ†’
11

Write a function that capitalizes the first letter of every word in a sentence.

โ†’
12

Write a function that returns the sum of all numbers in an array without using reduce().

โ†’
13

Write a function that checks if two strings are anagrams of each other.

โ†’
14

Write a function that returns an array containing only the even numbers from an input array, without using filter().

โ†’
15

Write a function that converts a temperature from Celsius to Fahrenheit and vice versa.

โ†’
16

Write a function that counts the number of vowels in a string.

โ†’
17

Write a function that returns the second largest number in an array.

โ†’
18

Write a function that checks whether a given year is a leap year.

โ†’
19

Write a function that converts an array of key-value pairs into an object.

โ†’
20

Write a function that returns the number of words in a sentence.

โ†’

Showing 1โ€“20 of 50 questions

Javascript CODE Interview Questions โ€” All Levels | UyTech