---
title: "fengxh (@fengxh) | Hashnode"
description: "front-end developer. Read the latest articles by fengxh on Hashnode."
url: "https://hashnode.com/@fengxh"
---

@fengxh

# fengxh

@fengxh · Shanghai, China · Joined December 2019

front-end developer

## Comments

[Thanks for your suggestion](https://hashnode.com/posts/understanding-cross-origin-and-cors/60d1b33af668475d88fed37b/comment/60d21e064e084d6e649c4633#reply-60d29633d81d4d6e9919b58e)

Reply · Article · Jun 23, 2021 · [understanding cross-origin and CORS](https://hashnode.com/posts/understanding-cross-origin-and-cors/60d1b33af668475d88fed37b)

[really like github themes i want to recommand a personal favorable theme: One dark pro](https://hashnode.com/posts/11-beautiful-vs-code-themes-for-2021/5fcacf7d2e4db7780e482a2c/comment/5fce00385c441315ebef433c)

Comment · Article · Dec 7, 2020 · [11 Beautiful VS Code Themes for 2021](https://hashnode.com/posts/11-beautiful-vs-code-themes-for-2021/5fcacf7d2e4db7780e482a2c)

[Sometimes, the type of data which are retrieved from apis is bitter vague, such as { code: 2, name: 'fengxh', type: 'human' } or { code: '2', type: 'clothes' }, from two different apis. So more codes to directly use ===, unless a workaround +code === 2. But I still recommend using ===](https://hashnode.com/posts/lose-equality-and-strict-equality-in-javascript/5f4f5b5af6e5c425ea6960fe/comment/5f50a7fe98ae9829ac3dabda)

Comment · Article · Sep 3, 2020 · [Why you shouldn't use Double Equals Operator in JavaScript](https://hashnode.com/posts/lose-equality-and-strict-equality-in-javascript/5f4f5b5af6e5c425ea6960fe)

[I'm sorry, but there is an error in javascript code about ternary operator let age = 17 if(age >= 18){ console.log(" You are old enough to vote"); }else{ console.log("Come back when you are 18"); } // Ternary Operator if age >= 18 ? console.log(" You are old enough to vote") : console.log("Come back when you are 18"); // here we don't need if identifier, just remove it](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec75d38627c645c120acf4c)

Comment · Article · May 22, 2020 · [Rust for JavaScript Developers](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342)

[Do you have any other programming languages experience? If you are an absolute beginner, there is a long way to go in front of you.](https://hashnode.com/forums/thread/javascript-as-a-beginner/comment/5ec21f6aa4db0c222f223162)

Comment · Thread · May 18, 2020 · [Javascript As a Beginner](https://hashnode.com/forums/thread/javascript-as-a-beginner)

[I have used this one before. But I will change theme every two or three months](https://hashnode.com/forums/thread/which-vscode-theme-is-your-favorite/comment/5eb588f0d820f651398236b2#reply-5eb60d0a2845fa2f3923dbf5)

Reply · Thread · May 9, 2020 · [Which vscode theme is your favorite?](https://hashnode.com/forums/thread/which-vscode-theme-is-your-favorite)

[Hi Tomasz: I'm a middle level front-end engineer, and my projects are mostly about websites and back-end management systems. I have worked for 5 years after graduated from high school, and now I get a little confused about how to reach a higher level, how to prep myself to build more featured works. And what's your path to senior engineer. Thanks a lot.](https://hashnode.com/forums/thread/ama-im-tomasz-lakomy-senior-frontend-engineer-ask-me-anything/comment/5eb3abff651a1647038426b1)

Comment · Thread · May 7, 2020 · [AMA: I'm Tomasz Łakomy. Senior Frontend Engineer. Ask me Anything!](https://hashnode.com/forums/thread/ama-im-tomasz-lakomy-senior-frontend-engineer-ask-me-anything)

[You can use reduce to finish the multiply action. function multiply(arr) { if (arr.length <= 0) return 1; return arr.reduce((result, number) => { return result \* number; }, 1); } Another thing about recursion is tail optimization, it can reduce the usage of call stack to minimize space complexity.](https://hashnode.com/posts/fcc-basic-javascript-replace-loops-using-recursion/5eb1d755352b69972eb69825/comment/5eb23406f89d4c762e707c62)

Comment · Article · May 6, 2020 · [fCC - Basic JavaScript: Replace Loops using Recursion](https://hashnode.com/posts/fcc-basic-javascript-replace-loops-using-recursion/5eb1d755352b69972eb69825)

[It is exactly the problem. I always pass the id or code field as key in React/Vue. shortedRow.map(data => <Component key={data.id} />)](https://hashnode.com/posts/you-shouldnt-use-an-index-as-key-of-the-element/5e96a0f43b68e66b1acbd649/comment/5e98223fa12c7e6a1a6af8e8)

Comment · Article · Apr 16, 2020 · [You shouldn't use an index as key of the element](https://hashnode.com/posts/you-shouldnt-use-an-index-as-key-of-the-element/5e96a0f43b68e66b1acbd649)

[Congratulations man. I'm also finding my new job recently, and wish I can find my perfect position and a better tomorrow](https://hashnode.com/posts/i-got-the-job-3-tips-on-how-you-can-get-your-dream-job/5e8bf738e980d0372eced59d/comment/5e8c444ce980d0372eced7fa)

Comment · Article · Apr 7, 2020 · [I GOT THE JOB: 3 Tips On How You Can Get Your Dream Job](https://hashnode.com/posts/i-got-the-job-3-tips-on-how-you-can-get-your-dream-job/5e8bf738e980d0372eced59d)
