N
Ruby:
> '1' + 2
TypeError: no implicit conversion of Integer into String
from (irb):2:in `+'
from (irb):2
from /home/install/.rvm/rubies/ruby-2.4.4/bin/irb:11:in `<main>'
JS:
> '1' + 2
"12"
Size: a a a
VV
> '1' + 2
TypeError: no implicit conversion of Integer into String
from (irb):2:in `+'
from (irb):2
from /home/install/.rvm/rubies/ruby-2.4.4/bin/irb:11:in `<main>'
> '1' + 2
"12"
N
> '1' + 2
TypeError: no implicit conversion of Integer into String
from (irb):2:in `+'
from (irb):2
from /home/install/.rvm/rubies/ruby-2.4.4/bin/irb:11:in `<main>'
> '1' + 2
"12"
“sample”.to_i # => 0
VV
VV
to_i
у экземпляров строк»AS
VV
VV
AS