quiz image

JavaScript Interview Questions: 1

TopCoding avatar
TopCoding
·
·
Download

Start Quiz

Study Flashcards

16 Questions

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)?

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.

What is the primary focus of user-centered designs?

The designer focuses solely on the needs of users in every phase of designing.

What is a challenge of using JavaScript with callbacks?

JavaScript that uses callbacks can be hard to get right intuitively.

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

jQuery simplifies JavaScript development by providing a library of pre-built functions.

What is the importance of upskilling in frontend development?

Upskilling in frontend development can lead to better job prospects and career advancement.

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

One interface, multiple functions.

What is the main principle of the KISS principle?

The simpler the system the better it works.

What is ClickJacking and how does it work?

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.

What are the two forms of Coercion in JavaScript?

Explicit and Implicit.

What is the purpose of Srcset?

To generate many new solutions of exact images on several devices.

What is a Mixin in CSS?

A code block that lets the group of CSS declarations which we can reuse in our site.

What is the main difference between MySQL and MongoDB?

MySQL is a relational Database Management System, while MongoDB is a NoSQL database.

What is the purpose of a Version Control System?

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.

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.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser