10 Popular Front-End Interview Questions

<blockquote> <p><em>Each question will involve an interesting knowledge point, you can try to think for a while before looking at the answer!</em></p> </blockquote> <h1>Q1: prototype?</h1> <p>What is the output, please?</p> <p><iframe frameborder="0" height="346" scrolling="no" src="https://blog.stackademic.com/media/8fbfb792955799817cf89efc16287cd2" title="q9-1.js" width="680"></iframe></p> <p><strong>Analysis And Answer</strong></p> <p>Look at the picture below, I think you will know the answer.</p> <ol> <li><code>true</code></li> <li><code>true</code></li> </ol> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*__o4ULkft0m9naTX2-8thw.png" style="height:283px; width:700px" /></p> <h1>Q2: What is the value of nums?</h1> <p>What is the output, please?</p> <p><iframe frameborder="0" height="192" scrolling="no" src="https://blog.stackademic.com/media/517d7ff630b323476ff86b6ceae41e73" title="q2.js" width="680"></iframe></p> <p><strong>Analysis And Answer</strong></p> <p>First of all, I don&rsquo;t think this question is looking at the programming ability of the candidate. He is examining whether candidates have eye problems. If you don&rsquo;t notice the semicolon, you must think nums is&nbsp;<strong>[0, 1, 2, 3, 4]</strong>.</p> <p><a href="https://blog.stackademic.com/10-popular-front-end-interview-questions-e89c96c2c787">Read More</a></p>