If statement confusion (ruby) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If statement confusion (ruby)

I have some confusion about a question in ruby challenges. It asks, if the 'end' keyword required to indicate the end of a if statement. And the answer is marked true. https://ibb.co/jh9khF But in ruby, you can write single line if statements which doesn't require an explicit end keyword, eg: print "Hello World" if true So, please change the question from 'if statement' to 'if block', or change the answer to false. Thanks.

9th Aug 2017, 5:29 AM
Salekin
Salekin - avatar
4 Answers
+ 6
info@sololearn.com
9th Aug 2017, 5:41 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
grr i have some suggestions in html also
9th Aug 2017, 5:36 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
no answers 😳 is there any other way to submit bug report?
9th Aug 2017, 5:25 PM
Salekin
Salekin - avatar
+ 1
thank you.
9th Aug 2017, 5:42 PM
Salekin
Salekin - avatar