Javascript Interview Questions

1,680 javascript interview questions shared by candidates

Their questions were very basic, just "tell us about yourself" the interviewers were stumbling over their words. Basically gave an overview of the company and asked "How does that fit in with what you're looking for?", and that's it.
avatar

Javascript Developer

Interviewed at Rebellion

3.5
Apr 11, 2025

Their questions were very basic, just "tell us about yourself" the interviewers were stumbling over their words. Basically gave an overview of the company and asked "How does that fit in with what you're looking for?", and that's it.

1. Given two strings “sentence” and message” and asked me to return a Boolean if a message can be generated from the given sentence(letters with in the sentence can not be reused) Ex: Sentence = “today is monday” Message = “sad day” Output : true Ex: Sentence = “today is monday” Message = “bad day” Output : false 2. Create a todo app using react. 3. Object oriented design of a parking lot. 4. Create react jsx dynamically using JSON response. 5. Print multi dimensional array in a spiral order. Ex: [[1,2,3,4], [5,6,7,8], [9,10,11,12], [13,14,15,16]] Output: 1,2,3,4,8,12,16,15,14,13,9,5,6,7,11,10 6. Reverse the given string as a sentence. Ex: “today is friday” Output: “friday is today” 7. Check If a given string is a valid HTML or not. Ex: “<head></head><body></body>” Output: true Ex: “<head></head><body>” Output: false
avatar

Senior Javascript Developer

Interviewed at Docusign

3.6
Apr 23, 2020

1. Given two strings “sentence” and message” and asked me to return a Boolean if a message can be generated from the given sentence(letters with in the sentence can not be reused) Ex: Sentence = “today is monday” Message = “sad day” Output : true Ex: Sentence = “today is monday” Message = “bad day” Output : false 2. Create a todo app using react. 3. Object oriented design of a parking lot. 4. Create react jsx dynamically using JSON response. 5. Print multi dimensional array in a spiral order. Ex: [[1,2,3,4], [5,6,7,8], [9,10,11,12], [13,14,15,16]] Output: 1,2,3,4,8,12,16,15,14,13,9,5,6,7,11,10 6. Reverse the given string as a sentence. Ex: “today is friday” Output: “friday is today” 7. Check If a given string is a valid HTML or not. Ex: “<head></head><body></body>” Output: true Ex: “<head></head><body>” Output: false

Viewing 1111 - 1120 interview questions

Glassdoor has 1,680 interview questions and reports from Javascript interviews. Prepare for your interview. Get hired. Love your job.