Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add js questions #884

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/questions/javascript-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permalink: /questions/javascript-questions/index.html
* What is a closure, and how/why would you use one?
* What language constructions do you use for iterating over object properties and array items?
* Can you describe the main difference between the `Array.forEach()` loop and `Array.map()` methods and why you would pick one versus the other?
* Сan you describe other popular methods for iterating over arrays?
* What is a typical use case for anonymous functions?
* What is the difference between host objects and native objects?
* Explain the difference between: `function Person(){}`, `var person = Person()`, and `var person = new Person()`?
Expand Down Expand Up @@ -40,6 +41,7 @@ permalink: /questions/javascript-questions/index.html
* What is event loop?
* What is the difference between call stack and task queue?
* What are the differences between variables created using `let`, `var` or `const`?
* Can you change a property of an object defined via `const`? How you can change this behavior?
* What are the differences between ES6 class and ES5 function constructors?
* Can you offer a use case for the new arrow `=>` function syntax? How does this new syntax differ from other functions?
* What advantage is there for using the arrow syntax for a method in a constructor?
Expand All @@ -53,6 +55,8 @@ permalink: /questions/javascript-questions/index.html
* What is the difference between `while` and `do-while` loops in JavaScript?
* What is a promise? Where and how would you use promise?
* Discuss how you might use Object Oriented Programming principles when coding with JavaScript.
* What is the difference between `event.target` and `event.currentTarget`?
* What is the difference between `event.preventDefault()` and `event.stopPropagation()`?

## Coding questions
* Make this work:
Expand Down