Skip to content

coding questions related to javascript, typescript asked during interviews

Notifications You must be signed in to change notification settings

ravibhoite22/coding-questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding-questions

coding questions related to javascript, typescript asked during interviews

Q1: filter user name with the status of the user i/p object arr, o/p array of names as per status ans: Q1.js

Q2. filter the numbers and strings as per o/p array using array methods i.e filter() input Array is [2, "b", 4, "d", 3, "a", "c", "e", 5, 1]; output Array should be [2, 4, 3, 5, 1, "b", "d", "a", "c", "e"]; ans:Q2.js

Q3. Wrt. code to find palindrome string in JavaScript/typescript ans:Q3.js

Q4. Wrt code to find the longest repeating letter in a string ans:Q4.js

Q5. What will the output of below code. ans:Q5.js

Q6. Wrt. Code to find no. of occurrence of string/numbers in array. Arr = [1,2,3,1,3,2,2,1,1] o/p should be {1:3,2:3,3:2} ans:Q6.js

Q7. Wrt code to archive expected o/p input arr = [1,2,3,4] o/p = [2,4,6,8] using array methods. ans:Q7.js

Q8. Wrt code to get sum of all the elements of array input arr = [[1,2,3],[4,5] ,[2,2,3,4,[1,2,[3]]],[0, [4,3]],[2,2,3,4,3]] o/p = sum of all array items ans:Q8.js

Q9. What will the output of below code. ans:Q9.js

Q10. What will the output of below code. ans:Q10.js

About

coding questions related to javascript, typescript asked during interviews

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published