JavaScript Interview Questions: 1
16 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the scope of a function in JavaScript?

In JavaScript, every function has its own scope, which is a collection of rules for how variables are accessed and variables themselves.

What is the relationship between jQuery and JavaScript?

jQuery is a library built with the JavaScript language.

What is Content Security Policy (CSP)?

CSP is a header in HTML that lets site operators gain control over the resources loading on the site.

What is Cross-Site Scripting (XSS)?

<p>XSS is an attack where an attacker uses a web application to send malicious code, in the form of browser-side script, to another user.</p> Signup and view all the answers

What is the primary focus of user-centered designs?

<p>The designer focuses solely on the needs of users in every phase of designing.</p> Signup and view all the answers

What is a challenge of using JavaScript with callbacks?

<p>JavaScript that uses callbacks can be hard to get right intuitively.</p> Signup and view all the answers

What is the main advantage of using a library like jQuery?

<p>jQuery simplifies JavaScript development by providing a library of pre-built functions.</p> Signup and view all the answers

What is the importance of upskilling in frontend development?

<p>Upskilling in frontend development can lead to better job prospects and career advancement.</p> Signup and view all the answers

What is the meaning of Polymorphism in object-oriented programming?

<p>One interface, multiple functions.</p> Signup and view all the answers

What is the main principle of the KISS principle?

<p>The simpler the system the better it works.</p> Signup and view all the answers

What is ClickJacking and how does it work?

<p>An attack that lets the developer fool the users into thinking that they are clicking one thing but actually they are clicking the other one.</p> Signup and view all the answers

What are the two forms of Coercion in JavaScript?

<p>Explicit and Implicit.</p> Signup and view all the answers

What is the purpose of Srcset?

<p>To generate many new solutions of exact images on several devices.</p> Signup and view all the answers

What is a Mixin in CSS?

<p>A code block that lets the group of CSS declarations which we can reuse in our site.</p> Signup and view all the answers

What is the main difference between MySQL and MongoDB?

<p>MySQL is a relational Database Management System, while MongoDB is a NoSQL database.</p> Signup and view all the answers

What is the purpose of a Version Control System?

<p>To record any changes to a file or set of data so that it is possible to restore it to a previous version if necessary.</p> Signup and view all the answers

Study Notes

Frontend Development Career

  • Frontend developers are in high demand and can earn attractive salary packages.
  • Having the right skills is prized over academic qualifications alone.
  • Skilled professionals with certification are 1.5X more likely to get a new job, salary hike, or promotion.

JavaScript Basics

  • Every function in JavaScript has its own scope, which is a collection of rules for how variables are accessed and variables themselves.
  • JQuery is a library built with the JavaScript language.

Design Principles

  • User-centered designs focus on the needs of users in every phase of designing.
  • KISS (Keep it Simple, Stupid) principle states that the simpler the system, the better it works.
  • Polymorphism refers to one interface, multiple functions in object-oriented design.

Security and Attacks

  • Content Security Policy (CSP) is a header in HTML that lets site operators gain control over resources loading on the site.
  • XSS (Cross-Site Scripting) is an attack where an attacker uses a web application to send malicious code to another user.
  • ClickJacking is an attack where a developer fools users into clicking on something they didn't intend to.

Grid System and CSS

  • Grid system is a structure that lets content be placed both horizontally and vertically in a consistent and manageable way.
  • It consists of two key components: Rows and Columns.
  • Mixin is a code block that lets you group CSS declarations that can be reused in your site.
  • Srcset is used to generate multiple new solutions of exact images on several devices, improving the UI.

Databases

  • MySQL is a relational Database Management System that uses SQL as its standard language.
  • MongoDB is a NoSQL database that shows data elements using a JSON-like structure.
  • MongoDB uses a query language to make changes.

Version Control System

  • A version control system (VCS) records changes to a file or set of data so that it can be restored to a previous version if necessary.
  • Git is a VCS that guarantees everyone on the team is working on the most up-to-date version of the file.
  • Git push is a command that pushes changes from a local repository to a remote repository.
  • Git pull is a command that pulls changes from a remote repository and merges them into the local repository.
  • Merge conflicts occur when competing changes are made to the same file on different branches.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser