Skip to content

¿Qué hace lo siguiente en ruby? def func(n) p 'hola' and return if n.even? n end func(2)

14votes
0comments
Live
Imprime 'hola' y retorna nil 9 votes
64.3%
Imprime 'hola' y retorna 'hola' 2 votes
14.3%
No imprime nada y retorna 2 1 votes
7.1%
No imprime nada y retorna nil 1 votes
7.1%
Imprime 'hola' y retorna 2 1 votes
7.1%
No imprime nada y retorna 'hola' 0 votes
0.0%
No imprime nada y retorna false 0 votes
0.0%
Imprime 'hola' y retorna false 0 votes
0.0%
Vote Distribution
Imprime 'hola' y retorna nil: 64.3% (9)Imprime 'hola' y retorna 'hola': 14.3% (2)No imprime nada y retorna 2: 7.1% (1)No imprime nada y retorna nil: 7.1% (1)Imprime 'hola' y retorna 2: 7.1% (1) Total 14 votes
Imprime 'hola' y retorna nil64.3%
Imprime 'hola' y retorna 'hola'14.3%
No imprime nada y retorna 27.1%
No imprime nada y retorna nil7.1%
Imprime 'hola' y retorna 27.1%
No imprime nada y retorna 'hola'0.0%
No imprime nada y retorna false0.0%
Imprime 'hola' y retorna false0.0%
Created
07 Mar 2023
End Date
No limit
Security
IP Check
Multiple Answers
No
Created By
Anonymous
Language
🇬🇧 English
Password
No

Comments 0

No comments yet. Be the first!

Vote Distribution
Imprime 'hola' y retorna nil: 64.3% (9)Imprime 'hola' y retorna 'hola': 14.3% (2)No imprime nada y retorna 2: 7.1% (1)No imprime nada y retorna nil: 7.1% (1)Imprime 'hola' y retorna 2: 7.1% (1) Total 14 votes
Imprime 'hola' y retorna nil64.3%
Imprime 'hola' y retorna 'hola'14.3%
No imprime nada y retorna 27.1%
No imprime nada y retorna nil7.1%
Imprime 'hola' y retorna 27.1%
No imprime nada y retorna 'hola'0.0%
No imprime nada y retorna false0.0%
Imprime 'hola' y retorna false0.0%

This page may be available in your language.