Is ruby strongly or weakly typed?

后端 未结 7 1363
Happy的楠姐
Happy的楠姐 2020-12-14 01:10

Is ruby strongly or weakly typed ?

Presumably the same is true for Javascript.

7条回答
  •  感动是毒
    2020-12-14 02:02

    The over-simplified answer is that both ruby and javascript are weakly typed.

    However this question is not quite as clear-cut as it may seem - see this wikipedia article for a more in-depth discussion on the difference between strongly and weakly typed languages.

提交回复
热议问题