浏览代码

Homework.5

Marko 2 年之前
父节点
当前提交
465ff238df
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      file.js

+ 3 - 3
file.js

@@ -43,8 +43,8 @@ intRandom()
 let guys = "";
 function greetAll(){
     for(i = 0;i<arguments.length;i++){
-        guys+= " " + arguments[i]};
-        alert(`Hi, ${guys}`)
+        guys+=  "," +  " " + arguments[i]};
+        alert(`Hi ${guys}`)
 
 }
 greetAll()
@@ -121,7 +121,7 @@ let samplee = {
     "greetAll": greetSample(),
     "sum": sumSample()
 }
-let qvestion = prompt('Какая функция?')
+let qvest = prompt('Какая функция?')
 alert(samplee[qvestion])