标签: javascript
我想知道如何在JS / jQuery中删除部分字符串。
这就是我想要的:
var room1 = "You see a ladder, an apple and an orange"; if(user has taken the apple) { remove the word "apple" from the string 'room1' print(room1)