Ruby - File IO
What will be the output of the following Ruby code?
Dir.mkdir('new_folder') unless Dir.exist?('new_folder')
puts Dir.exist?('new_folder')Dir.mkdir('new_folder') unless Dir.exist?('new_folder')
puts Dir.exist?('new_folder')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions