• Feed
  • Discussions
next id

next id

#next-id
0 followers·1 articles

next id

#next-id·0 followers·1 articles
next id
Rashedul Islam
Rashedul Islam
dev-rashedul.hashnode.dev·Mar 27, 2023
Mar 27, 2023

generate id with a generator function

function* generateId() { let index = 1; while (true) { yield index++; } } const generateUserId = generateId(); const generateProdId = generateId(); // user id console.log("user", generateUserId.next()); console.log("user", generateUserId.next()...

generate id with a generator function
Discuss·80 reads
id

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Revolutionizing Decentralized Finance on TON: The Tech Behind Seamless Liquidity and Cross-Chain Swaps.

Patience Uyire·46 reads

Life2App: Redefining Engagement in the New Economy.

Patience Uyire·46 reads

Reimagining Mobile Wallets: The Future of Finance in a Decentralized Web3 World.

Patience Uyire·46 reads

Top commenters this week

Mayank Arora
Mayank Arora
Edward D. Cornett
Edward D. Cornett
Clarence
Clarence
Melisa Parker
Melisa Parker
Charlie Simmon
Charlie Simmon

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior