8. Last practice for loops


#1

for ( i = 100; i › 0; i -= 5) {
console.log(i);
}

Can anyone help me? I dont know whats wrong with it.

It only tells me, There was a problem with the Syntax.

Thanks for helping;

BR


#2

for ( i = 100; i › 0; i -= 5) {

you are using wrong symbol
use > instead of


#3

Ok but how do i do them because i have a strange keyboard, it doesnt have the arrow keys (‹ ›)
the only way i do them is:
alt+ 0139
and alt+ 0155


#4

what is this for character: ? you should use > instead. also, you shouldn't print zero

You can copy the character we provide? What keyboard do you have? Maybe you can google it?


#5

you can use
Alt+60 for ( <) less than
and
Alt+62 for ( >) greater than

The Link of Alt Codes for entering Mathematical Symbols


#6

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