{"id":16327028,"url":"https://github.com/errec/front-end-interview-answers","last_synced_at":"2026-03-18T19:01:39.132Z","repository":{"id":202409784,"uuid":"93690723","full_name":"Errec/front-end-interview-answers","owner":"Errec","description":"My answers for https://github.com/h5bp/Front-end-Developer-Interview-Questions","archived":false,"fork":false,"pushed_at":"2017-12-29T20:58:38.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T03:11:26.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Errec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-08T00:19:41.000Z","updated_at":"2023-03-10T09:26:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfbf7628-147b-452f-b221-b8b71f7fb471","html_url":"https://github.com/Errec/front-end-interview-answers","commit_stats":null,"previous_names":["errec/front-end-interview-answers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Errec/front-end-interview-answers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Errec%2Ffront-end-interview-answers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Errec%2Ffront-end-interview-answers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Errec%2Ffront-end-interview-answers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Errec%2Ffront-end-interview-answers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Errec","download_url":"https://codeload.github.com/Errec/front-end-interview-answers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Errec%2Ffront-end-interview-answers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29574065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:10:12.182Z","updated_at":"2026-02-18T09:02:24.934Z","avatar_url":"https://github.com/Errec.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Front-end Job Interview Questions: My Answers!\n\nThis file contains my personal(some research included in 'personal') answers to a number of front-end interview questions from [https://github.com/h5bp/Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)\n\n## Table of Contents\n\n  1. [General Questions](#general-questions)\n  1. [HTML Questions](#html-questions)\n  1. [CSS Questions](#css-questions)\n  1. [JS Questions](#js-questions)\n  1. [Testing Questions](#testing-questions)\n  1. [Performance Questions](#performance-questions)\n  1. [Network Questions](#network-questions)\n  1. [Coding Questions](#coding-questions)\n\n#### General Questions:\n\n* What did you learn yesterday/this week?\n\n   *Object.create is a constructor pattern created by Douglas Crockford to offer a less \"obscured\" method than the 'new Object'.*\n   \n* What excites or interests you about coding?\n\n   *The infinite possibilities, the power of creation.*\n\n#### HTML Questions:\n\n* What does a `doctype` do?\n\n   *Doctype is a required declaration to inform the brower the HTML version used in the page, also required for legacy reasons.*\n\n* What's the difference between full standards mode, almost standards mode and quirks mode?\n\n    *It's possible to define through the 'doctype' declaration in wich mode the template engine will operate:*\n      \n      1 - Full standard mode: the behavior described by the current HTML and CSS specifications\n      2 - Almost standards mode: includes some quirks implementation\n      3 - Layout emulates nonstandard behavior, its used for legacy\n\n#### CSS Questions:\n\n* What is the difference between classes and IDs in CSS?\n\n   *1 - Class uses a period(.) followed by the name of the class, can be used on a group of elements with common attributes.*\n   \n   *2 - ID uses the hash(#) followed by the name of the ID, should be unique and it's more specificic than classes(overrides the same attributes setted by classes of that element).*\n\n#### JS Questions:\n\n* Explain event delegation\n\n   *A pattern used to assign an event handler to the parent or a common ancestor of the elements. Is commonly used to avoid batch assignments.*\n\n#### Testing Questions:\n\n* What are some advantages/disadvantages to testing your code?\n\n   * Advantages: reduces code refactoring time, reduces long-term costs, delivery a safer code.*\n   * Advantages: increases workflow complexibility, increases short-term costs.*\n\n#### Performance Questions:\n\n* What tools would you use to find a performance bug in your code?\n\n   *Chrome Devtools Timeline with the paint flashing option on.*\n\n#### Network Questions:\n\n* Traditionally, why has it been better to serve site assets from multiple domains?\n\n   *HTTP1.1 can't handle multiplexing, only one request can be outstanding on a connection at a time using the current protocol. One workaround is to use multiple source domains.*\n\n#### Coding Questions:\n\n* Question: What is the value of `foo`? *\n```javascript\nvar foo = 10 + '20';\n```\n   *Due to JS internal type coercion rules, the result is the string \"1020\"*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrec%2Ffront-end-interview-answers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferrec%2Ffront-end-interview-answers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrec%2Ffront-end-interview-answers/lists"}