10 Front-end Interview Questions You Should Know About

99% of people may not necessarily know the answer.

fatfish
3 min readDec 29, 2022

--

Preface

Recently my friend Candy participated in an interview and he was asked to answer 10 questions in the first round. Obviously, as an experienced engineer, he was annoyed with this matter and thought along the lines of, “I have 5 years of work experience, why do I need to do the written test?”

TIP: Each question will involve an interesting knowledge point, you can try to think for a while before looking at the answer!

Q1: Use an object as a property key

What is the output, please?

Analysis

As we all know, if you use an object as the property key, it will end up like this. The actual key is [object Object]

Answer

So what’s the answer? Maybe you think it’s fatfish, but the medium is the final answer.

Q2: What is the value of nums?

What is the output, please?

Analysis And Answer

--

--

fatfish

Hi friends, I am a front-end engineer from Alibaba, let’s code happily together.