Browse Source

Homework.5

Marko 2 years ago
parent
commit
465ff238df
1 changed files with 3 additions and 3 deletions
  1. 3 3
      file.js

+ 3 - 3
file.js

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