Front End Developer

  Home  GUI  Front End Developer


“Front End Programmer based Frequently Asked Questions by expert members with experience as Front End Developer. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



67 Front End Developer Questions And Answers

21⟩ Explain the difference between == and === ?

The 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.

== is equal to

=== is exactly equal to (value and type)

0==false // true

0===false // false, because they are of a different type

1=="1" // true, auto type coercion

1==="1" // false, because they are of a different type

 198 views

22⟩ What are the difference between GET and POST?

A GET request is typically used for things like AJAX calls to an API (insignificant changes), whereas a POST request is typically used to store data in a database or submit data via a form (significant changes). GET requests are less secure and can be seen by the user in the URL, whereas POST requests are processed in two steps and are not seen by the user. Therefore, POST requests are more secure.

 213 views

24⟩ Explain what is the importance of the HTML DOCTYPE?

The doctype declaration should be the very first thing in an HTML document, before the html tag.

The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.

The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers can render the content correctly.

 215 views

25⟩ Fresh Front End Developer Interview Questions

☛ What are the limitations when serving XHTML pages?

☛ Are there any problems with serving pages as application/xhtml+xml?

☛ How do you serve a page with content in multiple languages?

☛ What are the different ways to visually hide content (and make it available only for screen readers)?

☛ Any familiarity with styling SVG?

☛ What are some of the "gotchas" for writing efficient CSS?

☛ What's the difference between inline and inline-block?

☛ Explain how this works in JavaScript (Yes, I admit this. I think I know it, but I don't think I have a 100% lock down on the answer here and I want a 100% lock down.)

☛ AMD vs. CommonJS?

☛ What's the difference between host objects and native objects?

 206 views

26⟩ Basic JavaScript Front End Developer Interview Questions

☛ Explain event delegation

☛ Explain how this works in JavaScript

☛ Explain how prototypal inheritance works

☛ How do you go about testing your JavaScript?

☛ What do you think of AMD vs CommonJS?

☛ Explain why the following doesn't work as an IIFE: function foo(){ }();.

☛ What needs to be changed to properly make it an IIFE?

☛ What's the difference between a variable that is: null, undefined or undeclared?

☛ How would you go about checking for any of these states?

☛ What is a closure, and how/why would you use one?

☛ What's a typical use case for anonymous functions?

☛ How do you organize your code? (module pattern, classical inheritance?)

☛ What's the difference between host objects and native objects?

☛ Difference between: function Person(){}, var person = Person(), and var person = new Person()?

☛ What's the difference between .call and .apply?

☛ Explain Function.prototype.bind.

☛ When would you use document.write()?

☛ What's the difference between feature detection, feature inference, and using the UA string?

☛ Explain AJAX in as much detail as possible.

☛ Explain how JSONP works (and how it's not really AJAX).

☛ Have you ever used JavaScript templating?

☛ If so, what libraries have you used?

☛ Explain "hoisting".

☛ Describe event bubbling.

☛ What's the difference between an "attribute" and a "property"?

☛ Why is extending built in JavaScript objects not a good idea?

☛ Difference between document load event and document ready event?

☛ What is the difference between == and ===?

☛ Explain the same-origin policy with regards to JavaScript.

☛ What is "use strict";? what are the advantages and disadvantages to using it?

☛ Create a for loop that iterates up to 100 while outputting "fizz" at multiples of 3, "buzz" at multiples of 5 and "fizzbuzz" at multiples of 3 and 5

☛ Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?

☛ Why would you use something like the load event? Does this event have disadvantages? Do you know any alternatives, and why would you use those?

☛ Explain what a single page app is and how to make one SEO-friendly.

☛ What is the extent of your experience with Promises and/or their polyfills?

☛ What are the pros and cons of using Promises instead of callbacks?

 206 views

27⟩ General Front End Developer Interview Questions

☛ What did you learn yesterday/this week?

☛ What excites or interests you about coding?

☛ What is a recent technical challenge you experienced and how did you solve it?

☛ What UI, Security, Performance, SEO, Maintainability or Technology considerations do you make while building a web application or site?

☛ Talk about your preferred development environment.

☛ Which version control systems are you familiar with?

☛ Can you describe your workflow when you create a web page?

☛ If you have 5 different stylesheets, how would you best integrate them into the site?

☛ Can you describe the difference between progressive enhancement and graceful degradation?

☛ How would you optimize a website's assets/resources?

☛ How many resources will a browser download from a given domain at a time?

☛ What are the exceptions?

☛ Name 3 ways to decrease page load (perceived or actual load time).

☛ If you jumped on a project and they used tabs and you used spaces, what would you do?

☛ Describe how you would create a simple slideshow page.

☛ What tools do you use to test your code's performance?

☛ If you could master one technology this year, what would it be?

☛ Explain the importance of standards and standards bodies.

☛ What is Flash of Unstyled Content? How do you avoid FOUC?

☛ Explain what ARIA and screenreaders are, and how to make a website accessible.

☛ Explain some of the pros and cons for CSS animations versus JavaScript animations.

 176 views

28⟩ Basic HTML Front End Developer Interview Questions

☛ What does a doctype do?

☛ What's the difference between standards mode and quirks mode?

☛ What's the difference between HTML and XHTML?

☛ Are there any problems with serving pages as application/xhtml+xml?

☛ How do you serve a page with content in multiple languages?

☛ What kind of things must you be wary of when design or developing for multilingual sites?

☛ What are data- attributes good for?

☛ Consider HTML5 as an open web platform. What are the building blocks of HTML5?

☛ Describe the difference between a cookie, sessionStorage and localStorage.

☛ Describe the difference between <script>, <script async> and <script defer>.

☛ Why is it generally a good idea to position CSS <link>s between <head></head> and JS <script>s just before </body>? Do you know any exceptions?

☛ What is progressive rendering?

 209 views

29⟩ Basic CSS Front End Developer Interview Questions

☛ What is the difference between classes and ID's in CSS?

☛ What's the difference between "resetting" and "normalizing" CSS? Which would you choose, and why?

☛ Describe Floats and how they work.

☛ Describe z-index and how stacking context is formed.

☛ What are the various clearing techniques and which is appropriate for what context?

☛ Explain CSS sprites, and how you would implement them on a page or site.

☛ What are your favourite image replacement techniques and which do you use when?

☛ How would you approach fixing browser-specific styling issues?

☛ How do you serve your pages for feature-constrained browsers?

☛ What techniques/processes do you use?

☛ What are the different ways to visually hide content (and make it available only for screen readers)?

☛ Have you ever used a grid system, and if so, what do you prefer?

☛ Have you used or implemented media queries or mobile specific layouts/CSS?

☛ Any familiarity with styling SVG?

☛ How do you optimize your webpages for print?

☛ What are some of the "gotchas" for writing efficient CSS?

☛ What are the advantages/disadvantages of using CSS preprocessors?

☛ Describe what you like and dislike about the CSS preprocessors you have used.

☛ How would you implement a web design comp that uses non-standard fonts?

☛ Explain how a browser determines what elements match a CSS selector.

☛ Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.

☛ What does * { box-sizing: border-box; } do? What are its advantages?

☛ List as many values for the display property that you can remember.

☛ What's the difference between inline and inline-block?

☛ What's the difference between a relative, fixed, absolute and statically positioned element?

☛ The 'C' in CSS stands for Cascading. How is priority determined in assigning styles (a few examples)? How can you use this system to your advantage?

☛ What existing CSS frameworks have you used locally, or in production? How would you change/improve them?

☛ Have you played around with the new CSS Flexbox or Grid specs?

☛ How is responsive design different from adaptive design?

☛ Have you ever worked with retina graphics? If so, when and what techniques did you use?

☛ Is there any reason you'd want to use translate() instead of absolute positioning, or vice-versa? And why?

 197 views

30⟩ Network Based Front End Developer Interview Questions

☛ Traditionally, why has it been better to serve site assets from multiple domains?

☛ Do your best to describe the process from the time you type in a website's URL to it finishing loading on your screen.

☛ What are the differences between Long-Polling, Websockets and Server-Sent Events?

☛ Explain the following request and response headers:

► Diff. between Expires, Date, Age and If-Modified-...

► Do Not Track

► Cache-Control

► Transfer-Encoding

► ETag

► X-Frame-Options

☛ What are HTTP actions? List all HTTP actions that you know, and explain them.

☛ How would you make this work?

add(2, 5); // 7add(2)(5); // 7

 194 views

31⟩ Browser Compatibility Based Front End Developer Interview Questions

☛ What tools do you use for cross-browser testing?

☛ Lets assume you have found a rendering issue in IE8 what will be your work around to solve that issue?

☛ How will you achieve same drop down menu UI in different browsers?

☛ How will you fix border-radius compatibility issue in IE8?

 229 views

32⟩ Deployment Skills Based Front End Developer Interview Questions

☛ What do you use xampp or wampp & why?

☛ What is cPanel?

☛ What will be your workaround deploying a local site to live url?

☛ Name some online resources that you reference when having CSS/HTML/JS issues.

☛ Favorite tools and IDEs?

☛ Why stack overflow so useful? and whats your rating?

 195 views

33⟩ WordPress Based Front End Developer Interview Questions

☛ What are basic necessities for a theme? How will you create a Hello World! WordPress theme?

☛ Do you have developed plug-in?

☛ How will you create a template page in WordPress?

☛ How can you create an empty plugin which have basic options like activate, deactivate etc.?

 198 views

34⟩ JQuery / JavaScript Based Front End Developer Interview Questions

☛ What is jQuery?

☛ What is difference between onload and ready?

☛ How to select class in jQuery?

☛ Which selector has better performance id or class and why?

☛ How to add a class to HTML element?

☛ What is jQuery toggle function?

☛ Explain difference .empty() between .remove()?

☛ How can I select 20th div with jQuery?

☛ What is difference between .setinterval() & .delay()?

 209 views

35⟩ CSS / CSS3 Based Front End Developer Interview Questions

☛ Difference between position absolute and fixed?

☛ What is the difference between inline, inline-block, and block?

☛ Difference between ID and Class?

☛ What are sprites and why they are recommended?

☛ what are media queries?

☛ What is responsiveness?

☛ How to select last li of ul via CSS?

☛ Difference between; .class.class2 & .class .class & .class > class ?

☛ What are CSS pre-processors?

☛ What is style reset sheet?

☛ What is float?

 201 views

36⟩ HTML / HTML5 Based Front End Developer Interview Questions

☛ What is Doctype & why its important?

☛ What are meta tags?

☛ What does meta viewport tag do?

☛ Difference between div and span?

☛ What is html5?

☛ Name a few new tags in html5 and their advantages?

☛ What are the new media-related elements in HTML5?

☛ How can I create a div work like an input?

 234 views

38⟩ Explain what is web a application?

A great question to feel out the depth of the applicants knowledge and experience.

A web application is an application utilizing web and [web] browser technologies to accomplish one or more tasks over a network, typically through a [web] browser.

 197 views