What is the symbol for greater than or equal to?


#1


https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661

I can't remember what the symbol is for greater than or equal to. Could someone please help?

// Write your function below. 
// Don't forget to call your function!

var sleepCheck = function(numHours) {
    if (sleepCheck  8){
        return "You're getting plenty of sleep! Maybe even too much!"
    }
    else{
        return "Get some more shut eye!"
    }
}

sleepCheck(10)
sleepCheck(5)
sleepCheck(8)


#2

Few things--

  • After each exercise take notes.
  • In doubt review previous exercise.
  • Read standard documentations.

Even I explain things here after few days things will go off the mind...so doing above mentioned things will be helpful.

well here it is..

Conditional operators (>, <, >= , <= ,>=, === ,!==) and using them to make Conditional expressions

When we say x is greater than y..
We write this x > y

When we say x is less than y..
We write this x < y

When we say x is greater than or equal to y..
We write this x >= y

When we say x is less than or equal to y..
We write this x <= y

when we check if two things are equal..we write this..
x === y

when we check if two things are not equal..
we write
x !== y


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.