5605. 检查两个字符串数组是否相等
JS里面拼接数组的方法是Array.join("")
/**
* @param {string[]} word1
* @param {string[]} word2
* @return {boolean}
*/
var arrayStringsAreEqual = function(word1, word2) {
let str1=word1.join("");
let str2=word2.join("");
return str1==str2;
};