InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the use of clear in CSS? |
|
Answer» It is a CSS property which is used to clear of an FLOATING elements are not ALLOWED to float. Its DEFAULT value is "NONE". We can also use "clear:left" or "clear:right" |
|
| 2. |
What are the new features in HTML5? |
Answer»
|
|
| 3. |
What is the difference between HTML XHTML and XML? |
|||||||||||||||
Answer»
NOTE: This front end developer interview QUESTIONS is the most commonly asked. Make sure to study in detail this. |
||||||||||||||||
| 4. |
What are the advantages of tableless layout? |
Answer»
|
|
| 5. |
Explain the features of Three.js? |
|
Answer» Three.js having various features that are given below: |
|
| 6. |
What is the purpose of JSON.stringify()? |
|
Answer» This method is used to converts JavaScript objects into strings. When sending data to a web SERVER the data should be like string. Example// Stringify a JavaScript OBJECT |
|
| 7. |
Explain the difference between internal and external Javascript? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 8. |
What are the building blocks of HTML5? |
|
Answer» Every HTML document consists of the following BUILDING blocks-
|
|
| 9. |
What is the difference between a unit test and a functional test? |
||||||||||
Answer»
|
|||||||||||
| 10. |
What is domain pre-fetching and how does it help with performance? |
|
Answer» Domain prefetching is a process of resolving a website’s IP ADDRESS before a user clicks on it. Types of prefetching
This process allows the browser to perform the DNS lookups on a PAGE in the background and at the same time the user can browse the current page. This minimizes LATENCY as when the user clicks on the links they don't have to WAIT for DNS lookup. |
|
| 11. |
What is a CDN and what is the benefit of using one? |
|
Answer» CDN is a Content Delivery Network and is a series of servers that are distributed all over the WORLD and all are linked together. Benefits Of Using CDN |
|
| 12. |
What's the difference between the nth-of-type() and nth-child()? |
||||||
Answer»
|
|||||||
| 13. |
What's the difference between "resetting" and "normalizing" CSS? |
||||||||
Answer»
NOTE: Normalizing is way MUCH better than Resetting as there is no POINT in resetting all elements and styling them again. |
|||||||||
| 14. |
What is a promise? Where and how would you use promise? |
|
Answer» A promise means to the object which is responsible for producing a single value as the result in the upcoming future WHETHER it is resolved or not. Promises are used to manage asynchronous operations. How to use the promise: LET promise = new Promise(function(resolve, reject) { |
|
| 15. |
What is strict mode? What are some of the advantages and disadvantages of using it? |
|
Answer» With the help of “Strict Mode,” users can write SECURE Javascripts easily. It changes bad syntax into real errors. It can be DECLARED by placing “use strict”; at the beginning of a function or script. Advantages
<script> function show() { |
|
| 16. |
Why is it called a ternary expression what does the word ternary indicate? |
|
Answer» It is CALLED TERNARY expression because of the ternary operator (?:). Word Ternary INDICATES “THREE” means it takes 3 arguments and is one-lined shorthand for an if-then STATEMENT. |
|
| 17. |
What is event bubbling and event capturing in javascript? |
|
Answer» Event Bubbling In an event, bubbling handlers are called when ONE element is nested into a second element, and both the elements have a listener for the same event. E.g. A CLICK. Nowadays all modern browsers have event bubbling by default. Event CapturingEvent capturing starts from the TOP element to the TARGET element. Modern browsers don't support this event but we can ACHIEVE that with the help of code. |
|
| 18. |
What is Flash of Unstyled Content? |
|
Answer» FLASH of Unstyled CONTENT is also called Flash of unstyled text. It is an occurrence where a web page APPEARS shortly with the browser’s default styles. The web page CORRECTS or sets itself as soon as the style rules are loaded and applied. |
|
| 19. |
How do you check if a variable is a number in JavaScript? |
|
Answer» To CHECK if a VARIABLE is a number, we can use isNaN() function in JAVASCRIPT. It DETERMINES WHETHER a value is not a number. ExampleisNaN(123) //false |
|
| 20. |
How to manage CSS and JS to make easier for developers to work with? |
| Answer» | |
| 21. |
What is the difference between responsive and adaptive web design? |
|
Answer» Responsive WEB Design : It built on a fluid grid that will change with the browser automatically, no matter what the screen resolution is holding content can break apart and realign if need be. Adaptive Web Design : It not necessarily set on a fluid grid; targets specific device RESOLUTIONS like (320, 768, 1024 etc); can have set relative widths with (%) and controlled by media query. |
|
| 22. |
What is Ajax in JavaScript with example? |
|
Answer» Ajax stands for Asynchronous JavaScript And XML and it is not a programming language. It uses XML to TRANSPORT data, but it is equally common to transport data as JSON text or plain text. It allows webpage to be updated asynchronously by exchanging data with a WEBSERVER behind the scenes. It means that it is can update parts of a webpage WITHOUT reloading the whole page in website. |
|
| 23. |
What is anonymous function in JavaScript with example? |
|
Answer» It is a function that was declared without any function NAMED identifier to REFER to it. It is usually not accessible after its initial creation. These functions are CREATED at run time. Normal funtionfunction helloFunction() { var helloFunction = function() |
|
| 24. |
What are the new features in CSS3? |
Answer»
|
|
| 25. |
What is callback function in Javascript? |
|
Answer» A callback function is a function which is ACCESSIBLE by another function and invoked after the FIRST function if that first function completed. Example$("#button").CLICK(function(){ |
|
| 27. |
What is the difference between null and undefined? |
|
Answer» It can be assigned to a variable and has no value in CASE of null but on the other hand undefined MEANS a variable has been declared but has not yet been assigned a value. Also Read: FULL Stack INTERVIEW Questions |
|
| 28. |
What are three ways to reduce page load time? |
|
Answer» There are MANY things responsible for reducing PAGE load time. We will tell you the BEST three ways to reduce it’s loading time-
|
|
| 29. |
What do you mean by Coffee Script and why it is used? |
|
Answer» It is a small language that compiles into JavaScript. In this programs is written with less code and in more HUMAN readable forms. The golden rule of COFFEESCRIPT “It is just JavaScript”
|
|
| 30. |
How do you improve website performance? |
| Answer» | |
| 31. |
What is the difference between local storage session storage and cookies? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 32. |
What does CORS stand for and what issue does it address? |
|
Answer» CORS is Cross-Origin Resource Sharing and it allows you to make requests from one website to another website. But for SECURITY reasons, a BROWSER is not allowed to load requests to other domains when those requests are generated by SCRIPTS. CORS addresses this issue by supplying a header that will DEFINE which domains can make XMLHttpRequests. |
|
| 33. |
What skills are required for front end developer? |
|
Answer» Skillset REQUIRED from a FRONT end Developer listed below: Technical frontend developer skills
Apart from the above mentioned technical skills also should have knowledge of cross BROWSER testing, OOPS, CMS or any Framework and basic knowledge about SEO and tools. |
|