|
@@ -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])
|
|
|
|
|
|
|
|
|