Open in app

Sign in

Write

Sign in

fatfish
fatfish

28K Followers

Home

Lists

About

Published in

JavaScript in Plain English

·Pinned

Interview: Can You Stop “forEach” in JavaScript?

There are 3 ways to stop forEach in JavaScript — Interviewer: Can you stop a forEach loop in JavaScript? This is a question I was once asked during an interview, and my initial response was, “No, I can’t do that.” Unfortunately, my response led the interviewer to end the interview abruptly. Frustrated with the outcome, I asked the interviewer, “Why…

Front End Development

5 min read

Interview: Can You Stop “forEach” in JavaScript?
Interview: Can You Stop “forEach” in JavaScript?
Front End Development

5 min read


Published in

JavaScript in Plain English

·Pinned

Interviewer: Can (a==1 && a==2 && a==3) Ever Evaluate to ‘true’ in JavaScript?

Yes, it can be true, and there are 6 ways — amazing! — Recently, I was asked a very interesting interview question: Can (a== 1 && a==2 && a==3) ever evaluate to true in JavaScript?. I almost lost the job opportunity because I couldn’t answer. At that moment, I was shocked by the question and thought the interviewer was joking.

Front End Development

4 min read

Interviewer: Can (a==1 && a==2 && a==3) ever evaluate to true in JavaScript?
Interviewer: Can (a==1 && a==2 && a==3) ever evaluate to true in JavaScript?
Front End Development

4 min read


Published in

JavaScript in Plain English

·Pinned

“I Lost a Job Opportunity Just Because of Promise.all”

An interview experience that made me so sad. — This is an interview experience that happened to my friend not long ago. The interviewer wanted him to implement the Promise.all function. Unfortunately, my friend didn't play well on the spot and couldn't answer the question. After the interview, the interviewer rudely said to him: “Your foundation of JavaScript is…

Front End Development

4 min read

“I Lost a Job Opportunity Just Because of Promise.all”
“I Lost a Job Opportunity Just Because of Promise.all”
Front End Development

4 min read


Published in

JavaScript in Plain English

·Pinned

It’s 2022, Don’t Just Use React Anymore

Do you only use React? Do you know Vue? — Recently, my friend failed an interview simply because she was not familiar with Vue.js. She usually uses React most of the time at work, so she didn’t bother to learn about other front-end frameworks. Should we be familiar with all the front-end frameworks in the world? No, that is extremely…

React

5 min read

It’s 2022, Don’t Just Use React Anymore
It’s 2022, Don’t Just Use React Anymore
React

5 min read


Published in

JavaScript in Plain English

·Pinned

Interviewer: What Happened to “npm run xxx”?

A secret that most people don’t know. — Preface Recently, I participated in an interview that made a deep impression on me. After many twists and turns, I finally got the offer. You can’t imagine what I went through. 1. My interview process Interviewer: Please tell me what happened when “npm run xxx”? The more detailed the better. Me: I thought to myself…

Front End Development

6 min read

Interviewer: What Happened to “npm run xxx”?
Interviewer: What Happened to “npm run xxx”?
Front End Development

6 min read


Published in

Stackademic

·1 day ago

As a Front-End Engineer, 4 React Traps And TipsYou Should Know About

4 very useful React tips. — 1. Don’t forget to remove the listener when the component is Unmounting. We often need to listen to keyboard events, mouse events, etc. in useEffect of React. But we often forget to remove them. const windowScroll = () => { console.log('scroll') } useEffect(() => { window.addEventListener("scroll", windowScroll, false) }, []) Yes, when we return to this component, the scroll event will be…

Front End Development

3 min read

As a Front-End Engineer, 4 React Traps And TipsYou Should Know About
As a Front-End Engineer, 4 React Traps And TipsYou Should Know About
Front End Development

3 min read


Published in

JavaScript in Plain English

·3 days ago

10 Best Animation Librarys You Can Use in Your Next Project

Use them to create a great user experience As a front-end developer engineer, we often need to make cool animation effects. You know, that’s very interesting. In this article, I want to share with you 10 animation libraries that can greatly improve our work efficiency and through which we can…

JavaScript

3 min read

10 Best Animation Librarys You Can Use in Your Next Project
10 Best Animation Librarys You Can Use in Your Next Project
JavaScript

3 min read


Published in

Stackademic

·4 days ago

18 JavaScript One-Liners That’ll Make You Look Like a Pro

A list of one-liners you should know to up your knowledge of JavaScript. — In just a few minutes, step up your JS knowledge. 1. Generate a random string We can use Math.random to generate a random string, it’s very convenient when we need a unique ID. const randomString = () => Math.random().toString(36).slice(2) randomString() // gi1qtdego0b randomString() // f3qixv40mot randomString() // eeelv1pm3ja

Front End Development

5 min read

18 JavaScript One-Liners That’ll Make You Look Like a Pro
18 JavaScript One-Liners That’ll Make You Look Like a Pro
Front End Development

5 min read


Published in

Stackademic

·Nov 23

Say Goodbye to 4 Mistakes When Using React

1.# Render a list using the number 0 and “&&” as conditions Problem Description Maybe you have written code like this where we need to render a list, but before that, we often used array.length and && symbols to decide whether to render the list or not. const renderList = () => { const [ dataList, setDataList ] = useState([]) …

Front End Development

4 min read

Say Goodbye to 4 Mistakes When Using React
Say Goodbye to 4 Mistakes When Using React
Front End Development

4 min read


Published in

JavaScript in Plain English

·Nov 20

It’s Almost 2024, Don’t Just Use React Anymore

Do you only use React? Do you know Vue? — Recently, my friend failed an interview simply because she was not familiar with Vue.js. She usually uses React most of the time at work, so she didn’t bother to learn about other front-end frameworks. Should we be familiar with all the front-end frameworks in the world? No, that is extremely…

Front End Development

6 min read

It’s Almost 2024, Don’t Just Use React Anymore
It’s Almost 2024, Don’t Just Use React Anymore
Front End Development

6 min read

fatfish

fatfish

28K Followers

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

Following
  • Tom Smykowski

    Tom Smykowski

  • Andrew Zuo

    Andrew Zuo

  • Dr Mehmet Yildiz

    Dr Mehmet Yildiz

  • John Au-Yeung

    John Au-Yeung

  • Kristina God

    Kristina God

See all (159)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams