Open in app

Sign In

Write

Sign In

fatfish
fatfish

14.8K 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


22 hours ago

Why does JavaScript’s parseInt(0.0000005) print “5”?

Why does parseInt(0.0000005) in JavaScript print 5? An amazing question! — Preface Recently, I have had a strange problem when developing a project, parseInt (0.0000005) === 5 😱. Normally, the output 0 is correct, but why 5? Let’s explore this problem together. 1. When do you use parseInt? First of all, when do you usually use parseInt? Most of the time, we use it to parse a string…

Front End Development

3 min read

Why does JavaScript’s parseInt(0.0000005) print “5”?
Why does JavaScript’s parseInt(0.0000005) print “5”?
Front End Development

3 min read


Sep 18

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

Stackademic

·Sep 11

Interviewer: You Have Been Working for 3 Years, and You Can’t Answer This Algorithm Question?

A girl’s interview experience — Sep. is the best time to change jobs again. I fantasize that as long as I change my job, I can leave this “broken place”, make more money and do the most comfortable things. But it backfired. Recently, a schoolgirl was changing jobs. She prepared a lot of questions before…

Front End Development

3 min read

Interviewer: You Have Been Working for 3 Years, and You Can’t Answer This Algorithm Question?
Interviewer: You Have Been Working for 3 Years, and You Can’t Answer This Algorithm Question?
Front End Development

3 min read


Published in

JavaScript in Plain English

·Sep 5

10 Killer Animated Websites for Web Developers

99.9% of developers don’t know all of them. — As front-end developer engineers, 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 create amazing animation effects. 1. Animate.css Link Animate.css provides many animations…

Front End Development

3 min read

10 Killer Animated Websites for Web Developers
10 Killer Animated Websites for Web Developers
Front End Development

3 min read


Published in

Stackademic

·Sep 1

15 Regular Expression Tricks & Tips Every Developer Should Know

Regular expressions can greatly improve your efficiency — Preface What do you think about regular expressions? I guess you’d say it’s too obscure, I’m not interested in it at all. Yes, I used to be like you and thought I would never learn it in my life. But we can’t deny that it’s really powerful, I use it a…

Front End Development

4 min read

15 Regular Expression Tricks & Tips Every Developer Should Know
15 Regular Expression Tricks & Tips Every Developer Should Know
Front End Development

4 min read

fatfish

fatfish

14.8K Followers

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

Following
  • The woman

    The woman

  • Josef Cruz

    Josef Cruz

  • Mehdi Aoussiad

    Mehdi Aoussiad

  • Dr. Derek Austin 🥳

    Dr. Derek Austin 🥳

  • Tom Smykowski

    Tom Smykowski

See all (158)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams