Loops & Iterators


#1



https://www.codecademy.com/courses/ruby-beginner-en-XYcN1/0/3?curriculum_id=5059f8619189a5000201fbcb#


Oops, try again. It looks like your 'until' loop syntax isn't quite right. Check the Hint if you need help!


counter = 1
until counter > 10
  puts counter
  # Add code to update 'counter' here!
until counter > 10
puts counter
 # Increment counter
end

If you guys could help it would be amamzing


brianna_03


#2

    # Add code to update 'counter' here!
    # Increment counter
    counter += 1

If you are looking for a language that is easiest to tackle you'll be disappointed to learn that they are all pretty much the same level of difficulty for a beginner. There is no easy out.

Suggest focus on HTML/CSS to learn about the basics of web documents, then move on to JavaScript.


#3

wrong!!!!!!!!!!!!!!!!!!!


#4

Did you find the answer for this?? The code looks weird to me, but I can't say why... Maybe try:
counter = 1
until counter > 10
puts counter
counter = counter +=1
puts counter
end


#5

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