Skip to content
US-FEUS-FE
首页
标签
博客
    • What are the time and space complexity for sorting algorithms
      • What is Prototypal Inheritance? How does it work?
        • explain this keyword in JavaScript
          • what is Closure and how does it work?
            • 5.var vs let vs const
              • Explain the concept of Promise to a year-old
                • Map vs Object vs Set vs Array
                  • difference between == and ===
                    • explain how different CSS position property works
                      • what is the difference between block and inline?
                        • How HTTP works ? What is HTTP/2?
                          • How does HTTPS work?
                            • What is Event Delegation?
                              • Explain the differences between AMD, CommonJS and ES modules
                                • Array.prototype.forEach() vs Array.prototype.map()
                                  • How does instanceOf work? difference with typeof
                                    • Explain new operator in JavaScript. What exactly does it do?
                                      • Explain macrotask and microtask
                                        • What does header Connection:Keep-Alive do?
                                          • What happens when you type a URL in browser's address bar?
                                            • What is DNS? How does it work?
                                              • What is HTTP Cache? How does it work?
                                                • How to communicate between Webview and Native Client?
                                                  • Explain TCP Way Handshake process
                                                    • what is the angle between the hours and the minutes hands at 3:15
                                                      • What is CDN? Why do we use it?
                                                        • Explain Box Model
                                                          • How to detect crash of a web page?
                                                            • What is the difference between Express and Koa
                                                              • Explain the lifecycle of Vue instance
                                                                • What is the Pros and Cons of Node.js
                                                                  • Explain async and await
                                                                    • Cookie vs localStorage vs sessionStorage
                                                                      • What is CSRF? How to prevent it?
                                                                        • Explain common HTTP response status code
                                                                          • What is XSS? How to prevent it?
                                                                            • What is the best gift you have ever given or received ?
                                                                              • How could you do to improve performance in React?
                                                                                • What are Pseudo Class and Pseudo Element?
                                                                                  • Can you explain what React Fiber is?
                                                                                    • What is keep-alive in Vue.js useful for?
                                                                                      • What is the difference between Repaint and Reflow?
                                                                                        • What are Web Workers and Service Workers ?
                                                                                          • How Garbage collection in JavaScript works?
                                                                                            • What is memory leak ? How to debug and prevent it?
                                                                                              • Explain Event Loop in Browser and in Node.js
                                                                                                • What is Virtual DOM? How does it work?
                                                                                                  • What is HOC(Higher Order Component)?
                                                                                                    • What is the pros and cons of Redux?
                                                                                                      • What is React Hooks? What is the pros and cons?
                                                                                                        • What is SSR? What is the pros and cons?
                                                                                                          • What is loader and plugin in Webpack?
                                                                                                            • What are WeakSet and WeakMap?
                                                                                                              • What is Micro Frontends? What does it try to solve?
                                                                                                                • Explain the common performance metrics
                                                                                                                  • How do you track errors from your web application?
                                                                                                                    • Explain common HTTP request methods? What are they used for?
                                                                                                                      • What does a HTTP request look like?
                                                                                                                        • What is Array-Like Objects in JavaScript?
                                                                                                                          • When do we need to use non-strict mode?
                                                                                                                            • How to publish an NPM package
                                                                                                                              • What is Promise ? How to resolve a bunch of Promises in order?
                                                                                                                                • What is Factory Pattern?
                                                                                                                                  • What is the difference between ES6 Class and ES5 implementation?
                                                                                                                                    • What is Decorator Pattern
                                                                                                                                      • How to find the Performance Bottleneck of a web app?
                                                                                                                                        • What is the difference between setTimeout and setInterval?
                                                                                                                                          • Tell us the difference between common image format on the web.
                                                                                                                                            • What is Proxy Pattern?
                                                                                                                                              • What is Observer Pattern?
                                                                                                                                                • How to implement lazy load for images?
                                                                                                                                                  • How do you do unit test & e2e test in your web projects?
                                                                                                                                                    • How do you do SEO in your project?
                                                                                                                                                      • How does @import works in CSS? What is the pros and cons
                                                                                                                                                        • What is Process and what is Thread
                                                                                                                                                          • What is the difference between for...in and Object.keys?
                                                                                                                                                            • What is difference between for ... of and forEach
                                                                                                                                                              • Tell us a time you acted beyond your comfort zone.
                                                                                                                                                                • How does HMR(Hot Module Replacement) work in Webpack?
                                                                                                                                                                  • Long Polling vs Sever-Sent Event vs WebSocket
                                                                                                                                                                    • How does client-side routing work?
                                                                                                                                                                      • What is the difference between reset.css and Normalize.css
                                                                                                                                                                        • How to create a box with fixed Aspect Ratio in CSS?
                                                                                                                                                                          • How to create triangles with CSS?
                                                                                                                                                                            • What were the best things you’ve ever created?
                                                                                                                                                                              • What are you proud of the most?
                                                                                                                                                                                • Tell me about a time that you failed.
                                                                                                                                                                                  • Tell me a time you achieved something through good collaboration.
                                                                                                                                                                                    • Tell me a time you handled conflict.
                                                                                                                                                                                      • How do you give and receive feedback?
                                                                                                                                                                                        • What is the best advice you have received?
                                                                                                                                                                                          • Why us?
                                                                                                                                                                                            • Why Front End?
                                                                                                                                                                                              • Can you do a retrospective on your current project?
                                                                                                                                                                                                • Tell me a time you handled pressure.
                                                                                                                                                                                                  • Tell me a goal you set and you managed to achieve.
                                                                                                                                                                                                    • Tell me a goal you set but couldn't manage to achieve.
                                                                                                                                                                                                      • Tell me a time you acted beyond your responsibility.
                                                                                                                                                                                                        • How do you handle a challenge?
                                                                                                                                                                                                          • Tell me a time you motivated yourself and your team members.
                                                                                                                                                                                                            • What is that your team upset you the most?
                                                                                                                                                                                                              • Your decision proved to be wrong, how do you receive feedback?
                                                                                                                                                                                                                • What would you do if your progress is dragged own by other teams?
                                                                                                                                                                                                                  • What teams you want to be working in?
                                                                                                                                                                                                                    • Tell me a time you disagreed with your supervisor.
                                                                                                                                                                                                                      • Tell me about your current role.
                                                                                                                                                                                                                        • What's the most challenging thing you've done?
                                                                                                                                                                                                                          • Which environment is best to you to work
                                                                                                                                                                                                                            • Tell about most important decision in your life.
                                                                                                                                                                                                                              • What is your strength and weakness.
                                                                                                                                                                                                                                • What is the newest web technique that you are interested in.
                                                                                                                                                                                                                                  • How do you target your web app to different screen sizes?
                                                                                                                                                                                                                                    • How do you create retina hairline(0.5px line in CSS)?
                                                                                                                                                                                                                                      • What is CSS pixel and device pixel?
                                                                                                                                                                                                                                        • What is single sign-on? How to implement it?
                                                                                                                                                                                                                                          • What is Singleton Pattern?
                                                                                                                                                                                                                                            • What is JWT(JSON Web Token)?
                                                                                                                                                                                                                                              • What is Skeleton Screen? How to implement them?
                                                                                                                                                                                                                                                • What is the difference between async and defer on script tag?
                                                                                                                                                                                                                                                  • What have you learned from past professional working experiences?
                                                                                                                                                                                                                                                    • How to center an element vertically?
                                                                                                                                                                                                                                                      • Explain the common CSS Relative length units
                                                                                                                                                                                                                                                        • what is Open Redirect problem? How to solve it?
                                                                                                                                                                                                                                                          • How to implement pagination in Front End?
                                                                                                                                                                                                                                                            • please explain the 3rd parameter of EventTarget.addEventListener()
                                                                                                                                                                                                                                                              • How would you debug a web page and find the bad code?
                                                                                                                                                                                                                                                                • Tell us about CSS keywords: initial/inherit/unset/revert
                                                                                                                                                                                                                                                                  • Explain how position:sticky works
                                                                                                                                                                                                                                                                    • how to create a responsive Square with CSS?
                                                                                                                                                                                                                                                                      • What is the difference between modules and standard scripts?
                                                                                                                                                                                                                                                                        • what is the difference between cache-control:no-cache and cache-control:no-store?
                                                                                                                                                                                                                                                                          • What is the differencee between Symmetric and Asymmetric Encryption?
                                                                                                                                                                                                                                                                            • can you tell the difference between MVC, MVVM and Flux?
                                                                                                                                                                                                                                                                              • is Array.prototype.sort() stable in JavaScript?
                                                                                                                                                                                                                                                                                • Question
                                                                                                                                                                                                                                                                                  • Source
                                                                                                                                                                                                                                                                                  • What attributes do Cookies have?
                                                                                                                                                                                                                                                                                    • How to achieve responsiveness in your web app?
                                                                                                                                                                                                                                                                                      • What doesflex:1 mean?
                                                                                                                                                                                                                                                                                        • What is Block Formatting Context?
                                                                                                                                                                                                                                                                                          • What would be the principles if you are to lead a relatively large Front-End project?
                                                                                                                                                                                                                                                                                            • how does clear in CSS work?
                                                                                                                                                                                                                                                                                              • What does Object.freeze() do?
                                                                                                                                                                                                                                                                                                • Are you familiar with webpack? how does it work?
                                                                                                                                                                                                                                                                                                  • How does responsiveness work?
                                                                                                                                                                                                                                                                                                    • What is the difference between Vue and React? How would you choose?
                                                                                                                                                                                                                                                                                                      • how to implement user login?
                                                                                                                                                                                                                                                                                                        • what is 'use strict' for?
                                                                                                                                                                                                                                                                                                          • What is Same-Origin policy ? How to share Cross-Origin resource?
                                                                                                                                                                                                                                                                                                            • what is base64 ?
                                                                                                                                                                                                                                                                                                              • Tell me more about Unicode and UTF-8
                                                                                                                                                                                                                                                                                                                • Explain the structure of a HTTP message
                                                                                                                                                                                                                                                                                                                  • What is 300ms tap delay for touch device? How to remove it
                                                                                                                                                                                                                                                                                                                    • What is Generator and what is it useful for?
                                                                                                                                                                                                                                                                                                                      • why 0.1 + 0.2 !== 0.3 ? How to deal with float precision in your apps?
                                                                                                                                                                                                                                                                                                                        • How would you add offline support to your web app?
                                                                                                                                                                                                                                                                                                                          • how to improve performance of a webpage of a lot of images?
                                                                                                                                                                                                                                                                                                                            • what is transform:translateZ(0) for?
                                                                                                                                                                                                                                                                                                                              • will the sheep be eaten?
                                                                                                                                                                                                                                                                                                                                • What technologies are you learning right now? and what do you plan to learn?
                                                                                                                                                                                                                                                                                                                                  • What is the difference between git merge and git rebase?
                                                                                                                                                                                                                                                                                                                                    • How to turn HTML web page in to an image?
                                                                                                                                                                                                                                                                                                                                      • explain iterators and generators
                                                                                                                                                                                                                                                                                                                                        • What is the difference between function declaration and function expression?
                                                                                                                                                                                                                                                                                                                                        • UI

                                                                                                                                                                                                                                                                                                                                          • /question/implement-hacker-news

                                                                                                                                                                                                                                                                                                                                          is Array.prototype.sort() stable in JavaScript?

                                                                                                                                                                                                                                                                                                                                          2022年5月1日
                                                                                                                                                                                                                                                                                                                                          • Question
                                                                                                                                                                                                                                                                                                                                          • JavaScript
                                                                                                                                                                                                                                                                                                                                          小于 1 分钟

                                                                                                                                                                                                                                                                                                                                          此页内容
                                                                                                                                                                                                                                                                                                                                          • Question
                                                                                                                                                                                                                                                                                                                                          • Source

                                                                                                                                                                                                                                                                                                                                          # is Array.prototype.sort() stable in JavaScript?

                                                                                                                                                                                                                                                                                                                                          # Question

                                                                                                                                                                                                                                                                                                                                          ECMAScript Specopen in new window requires Array.prototype.sort() to be stable, but actually Chrome V8 only made it stable in 2018, 10 years after the issue was reportedopen in new window.

                                                                                                                                                                                                                                                                                                                                          The detail of what algorithm is used in V8open in new window is worth well reading.

                                                                                                                                                                                                                                                                                                                                          # Source

                                                                                                                                                                                                                                                                                                                                          Source Fromopen in new window

                                                                                                                                                                                                                                                                                                                                          编辑此页open in new window
                                                                                                                                                                                                                                                                                                                                          上次编辑于: 2022/5/16 23:51:22
                                                                                                                                                                                                                                                                                                                                          贡献者: xiaoyu2er
                                                                                                                                                                                                                                                                                                                                          上一页
                                                                                                                                                                                                                                                                                                                                          can you tell the difference between MVC, MVVM and Flux?
                                                                                                                                                                                                                                                                                                                                          下一页
                                                                                                                                                                                                                                                                                                                                          What attributes do Cookies have?