我想用和...替换字符串中的最后一个逗号
var ambassadorName = test, test, test
输出必须是
var ambassadorName= test, test and test.
请帮我解释一下代码
javascript
javascript ×1