DEV Community

loading...
Hao profile picture

Hao

I do code... and stuff

Location Yokohama Joined Joined on  github website
Work

Working as Something at Somewhere

All 32 comments

Daily Challenge #299 - Time to Grille!

Another JavaScript solution, using binary operations: cons...

How to Reverse a String

BTW, this doesn't work for surrogate pairs: 'Hello World 🌎'...

Is Value an Object

Or abuse JSON.stringify const isObject = val => JSON.s...

Let's Talk About Var, Let and Const

*Laughs in hay fever

What Tool Can You Never Remember or Get Good At?

Redux while using React. I don't know why it's popular. It'...

Daily Challenge #189 - Convert Number into Reversed Array

The result should be an array of numbers but this yields an...

JavaScript == vs ===, Which one you should use?

Have to mention Object.is: console.log(0 == '0'); ...

Daily Challenge #156 - Dave's Gamble

JavaScript const horses = count => Number.i...

Daily Challenge #144 - Box Office Clerk

Using JavaScript: const changes = { 25: 0, 50: 0 ...

Daily Challenge #140 - I love you, a little, a lot, passionately ... not at all

Ah, I see. Didn't pay attention there, my bad. Thanks for t...

Daily Challenge #140 - I love you, a little, a lot, passionately ... not at all

Very simple but effective answer! Just two improvements: ...

Daily Challenge #140 - I love you, a little, a lot, passionately ... not at all

Here's one solution using scss:

Light Switch

Thanks and oh... that's because I took it down, it's outdat...

Light Switch

That might be a good idea, although it seems too bulky to f...

Light Switch

Lol thanks, although I won't call myself a css expert since...

Daily Challenge #119 - Adding Big Numbers

There's a BigInt type in vanilla javascript, why not just u...

Share your CSS knowledge

Several tricks that I used very often: Select all t...

Daily Challenge #117 - MinMinMax

I'm sure there's less time complexity one but this boi will...

Daily Challenge #115 - Look and Say Sequence

Here's a one line solution in javascript. Zero readability, ...

Daily Challenge #35 - Find the Outlier

There's a potential bug. -21 will fail both isOdd and isEv...

Daily Challenge #32 - Hide Phone Numbers

Outstanding move

Daily Challenge #28 - Kill the Monster!

Solution in javascript: const killMonsters = (h, m, dm) =&g...

Who are all these people who are following me?

Daily Challenge #27 - Unlucky Days

Brilliant solution, very simple and effective. Although I t...

Daily Challenge #26 - Ranking Position

There's probably a better way which requires only one itera...

Daily Challenge #24 - Shortest Step

That was my original version, then I thought writing two fu...

Code Golf Challenge: Palindrome Detector

Even shorter word.split('').reverse().join('')==word

Daily Challenge #24 - Shortest Step

If you convert the number to binary, the steps are exactly ...

Three dots ( … ) in JavaScript

The other usage of ... I found is very useful: Conv...

What parts of CSS confuse you?

Wow thank you :D Guess it's time to face my fear and dive...

What parts of CSS confuse you?

Don't know where they come yet don't know what they do

Welcome Thread - v33

Hey, I'm Hao and new here, currently working as a frontend ...

loading...
Forem Open with the Forem app