---
title: "Discussion on \"Lucky numbers in JS!\" | Hashnode"
description: "Discussion on \"Lucky numbers in JS!\". What is a lucky number?\nSo we are going to create some code which I used as a challenge to the members of a Discord server I'm in. The challenge had the following criteria:\n\nA lucky number is defined as any number that has a '6' or an '8' in it. A nu..."
url: "https://hashnode.com/posts/lucky-numbers-in-js/63ee299b96b283cc7b3c72c6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lucky numbers in JS!](https://lilkittykat.hashnode.dev/lucky-numbers-in-js?utm_source=hashnode&utm_medium=feed)

What is a lucky number? So we are going to create some code which I used as a challenge to the members of a Discord server I'm in. The challenge had the following criteria: A lucky number is defined as any number that has a '6' or an '8' in it. A nu...

Feb 16, 2023 · 5 min read · lilkittykat.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#puzzle](https://hashnode.com/tag/puzzle)

## Written by

[Lucy](https://hashnode.com/@LilKittyKat)

@LilKittyKat

  
[View profile](https://hashnode.com/@LilKittyKat)

A new coder sharing my learning!

I am a learning coder from the UK, and am learning Javascript but I am quite proficient in Python!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
