# Comparison with the Less Than Operator

**URL:** <https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004>\
**Category:** General\
**Created:** [August 7, 2016, 1:30am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004 "2016-08-07T01:30:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangalita](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mangalita](https://forum.freecodecamp.org/u/mangalita)\
**Post date:** [August 7, 2016, 1:30am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004/1 "2016-08-07T01:30:05Z")

</div>

need help plese  
function testLessThan(val) {  
if (val \< 10) { // Change this line  
return “Under 25”;  
}

if (val \<55) { // Change this line  
return “Under 55”;  
}

return “55 or Over”;  
}

// Change this value to test  
testLessTh

go to this link [https://www.freecodecamp.com/challenges/comparison-with-the-less-than-operator#?solution= function%20testLessThan(val)%20{ %20%20if%20(val%20\<%2010)%20{%20%20%2F%2F%20Change%20this%20line %20%20%20%20return%20"Under%2025"%3B %20%20} %20%20 %20%20if%20(val%20\<55)%20{%20%20%2F%2F%20Change%20this%20line %20%20%20%20return%20"Under%2055"%3B %20%20} %20%20return%20"55%20or%20Over"%3B } %2F%2F%20Change%20this%20value%20to%20test testLessThan(99)%3B](https://www.freecodecamp.com/challenges/comparison-with-the-less-than-operator#?solution=%0Afunction%20testLessThan(val)%20%7B%0A%20%20if%20(val%20%3C%2010)%20%7B%20%20%2F%2F%20Change%20this%20line%0A%20%20%20%20return%20%22Under%2025%22%3B%0A%20%20%7D%0A%20%20%0A%20%20if%20(val%20%3C55)%20%7B%20%20%2F%2F%20Change%20this%20line%0A%20%20%20%20return%20%22Under%2055%22%3B%0A%20%20%7D%0A%0A%20%20return%20%2255%20or%20Over%22%3B%0A%7D%0A%0A%2F%2F%20Change%20this%20value%20to%20test%0AtestLessThan(99)%3B%0A)

---

<div class="post-metadata">

**Author:** ![PortableStick](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/portablestick/32/65591_2.png) [@PortableStick](https://forum.freecodecamp.org/u/PortableStick)\
**Post date:** [August 7, 2016, 1:54am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004/2 "2016-08-07T01:54:04Z")

</div>

What is it that you’re having trouble with exactly?

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 7, 2016, 1:56am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004/3 "2016-08-07T01:56:09Z")

</div>

Look here:

```javascript
if (val < 10) { // Change this line
  return "Under 25"; // hint!
}

```

---

<div class="post-metadata">

**Author:** ![mangalita](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mangalita](https://forum.freecodecamp.org/u/mangalita)\
**Post date:** [August 7, 2016, 2:06am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004/4 "2016-08-07T02:06:24Z")

</div>

What do you mean. I don’t don’t understand

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 4:41am UTC](https://forum.freecodecamp.org/t/comparison-with-the-less-than-operator/26004/5 "2021-01-16T04:41:02Z")

</div>

Closed on January 16, 2021, 4:41am UTC


