Set String via String.prototype function without return

这一生的挚爱 提交于 2019-11-28 14:23:02

You can't do that. You can't change the value of a string in the way that you change the content of an array.

Look at the other string methods, and how they return the new string value rather than changing the string in place.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!