用加号运算符号连接字符串

img

img

<script type="text/javascript">
    var str1 = "Hello ";
    var str2 = "world!";
    str1 = str1 + str2;
    console.log(str1);
  alert(str1);
</script>

原题已经提示了,你需要在第二个字符串开头加入一个空格,使得目标字符串符合题意

遇到什么问题了呢 。 let myStr="this is the start"+" this is the end";

img


少个空格 点后面或者 第二句T前面加也行