Is ruby strongly or weakly typed?

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

Is ruby strongly or weakly typed ?

Presumably the same is true for Javascript.

7条回答
  •  Happy的楠姐
    2020-12-14 01:51

    While you can get into arguments about the definition of those term I'd say:

    Ruby dynamically and strongly typed while JavaScript is dynamically and weakly typed.

提交回复
热议问题