• Stars
    star
    2,879
  • Rank 15,760 (Top 0.4 %)
  • Language
    HTML
  • Created almost 11 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Help the front End community to rock interview

Front end Interview Questions


To rock the interview to achieve what you deserve and to improve your concepts about front end technologies, I have consolidated a list of questions and answers. It's a one stop solution for front end interview process.

Table of Contents

Angular Interview Questions

An exclusive list of Angular interview Questions are here

JavaScript: Basics and Tricky Questions

21+ questions and answers (for intermediate)


  1. What are the differences between null and undefined?
  2. What are the differences between == and ===?
  3. How would you compare two objects in JavaScript?
  4. 11+ true false related questions that will trick you.
  5. As [] is true, [] == true should also be true. right?
  6. How could you write a method on instance of a date which will give you next day?
  7. If you want to use an arbitrary object as value of this, how will you do that?
  8. Write a simple function to tell whether 2 is passed as parameter or not?
  9. How could you use Math.max to find the max value in an array?
  10. What the heck is this in JavaScript?
  11. 21 quick questions that will trick you.
  12. How could you set a prefix before everything you log? for example, if you log('my message') it will log: "(app) my message"
  13. What will you see in the console for the following example?
  14. Look at the code below, you have a for loop if you have setTimeout inside it. If log the loop counter inside setTimeout, what will be logged?
  15. Look at the code below, I have a property in a object and I am creating a new object where I am setting it to a new value. If I delete that property what will i get if I try to access that property?
  16. Does JavaScript pass parameter by value or by reference?
  17. How could you implement cache to save calculation time for a recursive fibonacci function?
  18. How could you cache execution of any function?
  19. If you need to implement the following chaining with call back, how will you implement it?
  20. How could you implement moveLeft animation?
  21. How would you implement currying for any functions?

JS: Answer for Basics and Tricky Questions

css: Basics and Tricky Questions

21+ questions and answers


  1. What does float do?
  2. How can you clear sides of a floating element?
  3. How can you clear sides of a floating element?
  4. some tricky questions in rapid fire style
  5. Are CSS rule names case sensitive?
  6. Why css selectors mixed up with cases don't apply the styles?
  7. Does margin-top or margin-bottom has effect on inline element?
  8. Does padding-top or padding-bottom has effect on inline element?
  9. Does padding-left or padding-right or margin-left or margin-right has effect on inline element?
  10. If you have a <p> element with font-size: 10rem, will the text be responsive when the user resizes / drags the browser window?
  11. The pseudo class :checked will select inputs with type radio or checkbox, but not <option> elements.
  12. In a HTML document, the pseudo class :root always refers to the <html> element.
  13. The translate() function can move the position of an element on the z-axis.
  14. Which one would you prefer among px, em % or pt and why?
  15. How absolute, relative, fixed and static position differ?
  16. What are the differences between visibility hidden and display none?
  17. What are the differences between inline, block and inline-block?
  18. What are the properties related to box model?
  19. Does overflow: hidden create a new block formatting context?
  20. How could you apply css rules specific to a media?
  21. What is the use of only?
  22. Does the screen keyword apply to the device's physical screen or the browser's viewport?
  23. What are the some pseudo classed u have used?
  24. How do you align a p center-center inside a div?
  25. How do you optimize css selectors?
  26. How can you load css resources conditionally?
  27. Why would you use sprites?
  28. What is specificity? How do u calculate specificity?
  29. What is shadow DOM?
  30. What do you know about transition?
  31. What are the different css filter you can use?
  32. What are the reasons to use preprocessor?
  33. Show you couple of style example and you have to tell what does it do.

CSS: Answer for Basics and Tricky Questions

css Deleted questions!

Looks like these are for hardcore designer. Hence, didn't make for developers.


  1. How descendant css selectors are matched? get answer
  2. How would u implement modularity in css?
  3. If something doesn't work in a specific browser (IE8), you would u approach this problem?
  4. How do you test cross-browser compatibility of your site?
  5. What is the greatest hack you did in css so far?
  6. What is grid layout?
  7. How can you make a site responsive?
  8. Why reset css is useful? or how normalize.css works?
  9. What do you know about text shadows, box shadows?

JavaScript: Algorithm Beginners Level

20 questions and answers (for beginners)


  1. Verify a prime number?
  2. Find all prime factors of a number?
  3. Get nth Fibonacci number?
  4. Find the greatest common divisor of two numbers?
  5. Remove duplicate members from an array?
  6. merge two sorted array?
  7. Swap two numbers without using a temp variable?
  8. Reverse a string in JavaScript?
  9. How would you reverse words in a sentence?
  10. Reverse words in place?
  11. Find the first non repeating char in a string?
  12. Remove duplicate characters from a sting?
  13. How will you verify a word as palindrome?
  14. Generate random between 5 to 7 by using defined function.
  15. Find missing number from unsorted array of integers.
  16. Get two numbers that equal to a given number?
  17. Find the largest sum of any two elements?
  18. Total number of zeros from 1 upto n?
  19. Check whether a given string is a substring of bigger string
  20. Get permutations of a string

JS: Answer for Algorithm Beginners Level

JavaScript for Intermediate Level Developer

  1. What is the event loop? Can you draw a simple diagram to explain event loop?
  2. How to you explain closure?
  3. How would you make sure value of this works correctly inside setTimeout?
  4. What are the different possible values for this?
  5. What is debounce and how could you implement debounce?
  6. How would you communicate with server
  7. Explain Promise to your grandmother
  8. If and website is slow how what would you do to make it faster?
  9. What ES6 feature do you use other than let, var and arrow?
  10. What build tool you use and tell me some advantages to use that build tool

JavaScript: DOM related Questions

21+ questions and answers (for intermediate JS Developers)


  1. Is there any difference between window and document?
  2. Does document.onload and window.onload fire at the same time?
  3. Is attribute similar to property?
  4. What are the different ways to get an element from DOM?
  5. What is the fastest way to select elements by using css selectors?
  6. How come, I can't use forEach or similar array methods on a NodeList?
  7. If you need to implement getElementByAttribute, how would you implement it?
  8. How would you add a class to an element by query selector?
  9. How could I verify whether one element is child of another?
  10. What is the best way to create a DOM element? Set innherHTML or use createElement?
  11. What is createDocumentFragment and why you might use it?
  12. What is reflow? What causes reflow? How could you reduce reflow?
  13. What is repaint and when does this happen?
  14. How could you make sure to run some JavaScript when DOM is ready like $(document).ready?
  15. What is event bubble? How does event flows in DOM?
  16. How would you destroy multiple list items with one click handler?
  17. Create a button that is destroyed by clicking in it but two new buttons are created in it's place.
  18. How could you capture all clicks in a page?
  19. How can you get all the texts in a web page?
  20. What is defer and async keyword does in a script tag?
  21. 10 rapid fire questions

JS: Answers for DOM related Questions

html: Basic Questions for Begginers

15 basic questions and asnwers


  1. Why do you need doctype?
  2. What are data-* attributes used for?
  3. How can you generate a public key in html?
  4. How do you change the direction of html text?
  5. How can you highlight text in html?
  6. Can you apply css to a part of html document only?
  7. Will a browser make http request for the following cases?
  8. Which resource would be downloaded first?
  9. What is an optional tag?
  10. What are the differences between div and span?
  11. How would you differentiate between div, section, and article?
  12. How would you select svg or canvas for your site?
  13. How to serve html in multiple languages?
  14. Explain standard and quirks mode.
  15. What is a semantic tag?

HTML: Answers for Basic Questions

JavaScript: LinkedList (part 4: work in process)

Very rough stage..need to finish (for intermediate)

JavaScript: search and Sort (part 5: work in process)

Very rough stage..need to finish (for expert)

JavaScript: Binary Search Tree (part 6: work in process)

Very rough stage..need to finish (for expert)


TODO list

  1. CSS: Generate mock up from provided layout
  2. JavaScript: Programming challenges for expert
  3. HR related questions like
  4. What is your weakness
  5. Why are you leaving your current job
  6. Tell me about a project that you weren't able to finish on time
  7. How you resolve conflict among team members
  8. How will you introduce a new technology to the team
  9. Do you prefer to work individually or in a team
  10. Sell this pen/coke/something to me
  11. How much salary do you want
  12. What you don't like you current job
  13. What you like least in your current job
  14. Tree Data Structure in JavaScript
  15. Graph and high order data structure in JavaScript

Inpsired by, darcyclarke, css-tricks, david shariff and some google results. If you want to add any question to this let me know.

More Repositories

1

angular-interview-questions

Most extensive Angular interview questions based on your level.
HTML
370
star
2

tree-grid-directive

Need one or more maintainer for this! comment or email me if you are interested
JavaScript
347
star
3

programming-hero

Programming Just Got Fun
HTML
35
star
4

jhankarMahbub.com

website content for
HTML
30
star
5

level-up-your-javascript

Advanced JavaScript for beginners
CSS
13
star
6

car-race-python-game

Python
12
star
7

VS-Code-tips-and-tricks

7
star
8

advJSDebug

JavaScript
6
star
9

HighPerformanceJSandCSS

High Performance JavaScript and CSS talk materials
CSS
6
star
10

thatJsDude

Website content for the that JS dude site
HTML
6
star
11

react-training-beginners

JavaScript
6
star
12

multiuser-comment

TypeScript
6
star
13

ES6

Talk about What's New in EcmaScript 6. Initially preparing for JS Chicago October 2013
CSS
5
star
14

landYourDreamJob

How you will face interview...and prepare for that
5
star
15

HighPerfJS

JS meetup Chicago, february 2014
HTML
4
star
16

BangularBank

TypeScript
4
star
17

ema-john-july18

React Beginners Workshop July 18 Chicago
JavaScript
4
star
18

MakeWebFaster

Make the Web Faster 3 times and asks for a raise
CSS
4
star
19

ema-john-tc

JavaScript
3
star
20

jsdude

CSS
3
star
21

Jhankar-Portfolio

Auto create by Programming Hero
3
star
22

ema-john-sept18

JavaScript
3
star
23

react-workshop

CSS
3
star
24

react

JavaScript
3
star
25

codinism

HTML
3
star
26

reactJSLearning

JavaScript
3
star
27

ema-john

A Demo site to teach React to React Beginners
JavaScript
3
star
28

developer-jokes

3
star
29

functional-programming

HTML
3
star
30

androidTry

learning android
Java
2
star
31

redux-try4

JavaScript
2
star
32

react-d3

JavaScript
2
star
33

learn-programming

Getting started with programming
CSS
2
star
34

TensorFlowJS

JavaScript
2
star
35

modern-javascript

CSS
2
star
36

adv-react-redux-workshop

JavaScript
2
star
37

react-try3

JavaScript
2
star
38

redux-with-redux-saga

JavaScript
2
star
39

myTry

Auto create by Programming Hero
HTML
2
star
40

github-profile-search

TypeScript
2
star
41

console

JavaScript
2
star
42

adv-react-chicgo18

JavaScript
2
star
43

redux-try1

JavaScript
2
star
44

redux-try2

JavaScript
2
star
45

superior150

TypeScript
2
star
46

redux-todo

JavaScript
2
star
47

android-POC

Java
2
star
48

JSCodeQuality

Live slides are here
CSS
2
star
49

JSconfusingParts

Things in JS confuses you. this is another attempt to escape confusion
CSS
2
star
50

react-deploy-test

JavaScript
2
star
51

jhankar-test

Auto create by Programming Hero
2
star
52

angular-training-beginner

JavaScript
2
star
53

try-react

JavaScript
2
star
54

linkManager

Simple ToDo using backbone and bootstrap in a nice weekend
JavaScript
2
star
55

fortest

1
star
56

Git-another-Test

Auto create by Programming Hero
HTML
1
star
57

redux-concepts

CSS
1
star
58

angularPerf

HTML
1
star
59

khan4019.github.io

for publishing projects
1
star
60

angular-architecture

TypeScript
1
star
61

horiz-waterfall-nvd3

JavaScript
1
star
62

Canvas

Trying canvas stuff
1
star
63

habluDerJonnoProgramming

1
star
64

angular2-website

JavaScript
1
star
65

intro-to-Typescript

CSS
1
star
66

react-16

CSS
1
star
67

graphql

Live site
CSS
1
star
68

multidimentionalPie

1
star
69

manage-state

Manage State in a large React APp
HTML
1
star
70

kaarEna

Auto create by Programming Hero
HTML
1
star
71

three-and-a-half-Perf-tips

chicago html5 meetup light talk
CSS
1
star
72

test

1
star
73

battery

HTML
1
star
74

habluderAdda

website for Programming books
HTML
1
star
75

hablu.jhankarmahbub.com

হাবলুদের জন্য প্রোগ্রামিং বইয়ের কন্টেন্ট সমূহ
HTML
1
star
76

ngrx-example-app

TypeScript
1
star
77

largeJSApp

HTML
1
star
78

BanglaContent

1
star
79

git-publish-

Auto create by Programming Hero
1
star
80

test-app

1
star
81

explainJSQuiz

For JS meetup Januar 2014 at chicago
CSS
1
star
82

demo27

Auto create by Programming Hero
HTML
1
star
83

emptyProjec

Auto create by Programming Hero
HTML
1
star
84

betterThanAddyOsmani

If you are a passionate JavaScript developer, you always want to be better. If I ask you how better? if you have the right passion, you will say better than the best. For me the best is Addy Osmani and I want to be better than addy Osmani. You could have someone else to be better than. However, you can follow my formula to become better than your guru.
CSS
1
star
85

Nov-27

Auto create by Programming Hero
HTML
1
star