For loop not displaying string

hello I just want to print the string five time but its not working


let joseFullName = "Jose Albert";
for (var i = 0; joseFullName < 5; i++) {
  console.log(joseFullName);
}

it should be i < 5 not joseFullName < 5

1 Like

thanks alot very handy

1 Like