Skip to content

jessicaribeiroalves/challengearraysloops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Challenge: Loops and Arrays Challenge

Instructions

  1. Perform a git clone <url of this repo> on this repository. Open the folder in VS Code using code ..

  2. Open the arrays.rb and manipulate the arrays inside to produce the required output.

  3. Open the loops.rb and create loops to produce the required output.

  4. Push your solutions to a repository on Github

  5. Take three deep breaths :)

Pre-Challenge Review

Loops

FOR LOOP

for item in array
  puts "Item: #{item}"
end

WHILE LOOP

i = 0
while i < array.length
  puts "Item: #{array[i]}"
  i += 1
end

EACH

shopping_list.each do |item|
  puts "Item: #{item}"
end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages