# Hello Everyone ! This Code is not Working please tell me about the mistake

**URL:** <https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580>\
**Category:** General\
**Created:** [April 7, 2020, 7:44pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580 "2020-04-07T19:44:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qaisrani](https://avatars.discourse-cdn.com/v4/letter/q/90ced4/32.png) [@Qaisrani](https://forum.freecodecamp.org/u/Qaisrani)\
**Post date:** [April 7, 2020, 7:44pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/1 "2020-04-07T19:44:35Z")

</div>

```auto
<!DOCTYPE html>
<head>
<meta charset="utf-8">
</head>
<title></title>
<body>
<h2>JavaScript Can Validate Input</h2>
<p>Please input a number between 1 and 10:</p>
<input Id="numb">

<button type="button" onClick="HI()">Submit</button>
<p Id="demo"></p>

<script language="javaScript">
function HI() {
<p>checking</p>
	var x,text;
 x = document.getElementbyId("numb").value;
	if (isNaN(x) || x < 1 || x > 10){
		text = "Input invalid";
	} else {
		text="Okay";
		
	}
	document.getElementById("demo").innerHTML=text;
}
</script>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [April 7, 2020, 7:55pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/2 "2020-04-07T19:55:05Z")

</div>

I can’t see your code. Please add your code, using the `</>` button to add the ````` characters around your code.

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [April 7, 2020, 8:33pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/3 "2020-04-07T20:33:42Z")

</div>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See [this post](http://www.freecodecamp.com/forum/t/forum-code-formatting/25574) to find the backtick on your keyboard. The “preformatted text” tool in the editor (`</>`) will also add backticks around text.

**Note:** Backticks are not single quotes.

![markdown_Forums](https://sea3.discourse-cdn.com/freecodecamp/uploads/default/original/3X/4/b/4b9a26f0c243380dd84935f4e29b92e3ecee8d05.gif)

---

<div class="post-metadata">

**Author:** ![BoCode84](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bocode84/32/149756_2.png) [@BoCode84](https://forum.freecodecamp.org/u/BoCode84)\
**Post date:** [April 7, 2020, 8:35pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/4 "2020-04-07T20:35:05Z")

</div>

@ArielLeslie What challenge is this for? Just so I can see what we can do to help this member

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [April 7, 2020, 8:39pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/5 "2020-04-07T20:39:26Z")

</div>

It doesn’t look like a freeCodeCamp challenge I recognize. I just fixed the formatting. I don’t know what @Qaisrani is trying to do or what they need help with. 🤷‍♀️

---

<div class="post-metadata">

**Author:** ![BoCode84](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bocode84/32/149756_2.png) [@BoCode84](https://forum.freecodecamp.org/u/BoCode84)\
**Post date:** [April 7, 2020, 8:40pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/6 "2020-04-07T20:40:49Z")

</div>

This is exactly why I was asking because I did not recognize any challenge having stuff like this.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:00pm UTC](https://forum.freecodecamp.org/t/hello-everyone-this-code-is-not-working-please-tell-me-about-the-mistake/369580/7 "2021-06-01T19:00:01Z")

</div>


