javascript 高手入,编辑大神入
答案:3 悬赏:60 手机版
解决时间 2021-01-25 22:06
- 提问者网友:浩歌待明月
- 2021-01-25 04:34
javascript 高手入,编辑大神入
最佳答案
- 五星知识达人网友:从此江山别
- 2021-01-25 05:51
晚上要交啊,很遗憾我来晚了追问现在给我也可以,,,快!!!!!我和老师说我今天交追答说实话 我没看懂这个是要干嘛?根据注释的内容完成代码吗?追问对,根据注释完成代码,可以把这个复制到brackets。就会自动显示了。。急阿追答function challenge2() {
var forLoopCounter = 1;
while (forLoopCounter <= 5) {
console.log("This is #" + forLoopCounter + " in the while loop");
forLoopCounter++;
}
for (;forLoopCounter<=5;forLoopCounter++)//Put your for loop here
{
console.log("This is #" + forLoopCounter + " in the for loop");
}
}
function challenge3() {
var birthdayMessage1 = "Happy birthday to you";
var birthdayMessage2 = "Happy birthday dear Mileaux";
for (var i=0; i < 3; i++) {
if(i==0){
console.log(birthdayMessage1);
}else{
console.log(birthdayMessage2);
}
}
}
function challenge5() {
for (outside = 3; outside < 6; outside++) {
for (inside = 3; inside < 6; inside++) {
console.log(inside + "×" + outside + "=" + (inside*outside) + '
');
}
}
} 字数超出最大允许值了 第四个和另一个网友的一样
var forLoopCounter = 1;
while (forLoopCounter <= 5) {
console.log("This is #" + forLoopCounter + " in the while loop");
forLoopCounter++;
}
for (;forLoopCounter<=5;forLoopCounter++)//Put your for loop here
{
console.log("This is #" + forLoopCounter + " in the for loop");
}
}
function challenge3() {
var birthdayMessage1 = "Happy birthday to you";
var birthdayMessage2 = "Happy birthday dear Mileaux";
for (var i=0; i < 3; i++) {
if(i==0){
console.log(birthdayMessage1);
}else{
console.log(birthdayMessage2);
}
}
}
function challenge5() {
for (outside = 3; outside < 6; outside++) {
for (inside = 3; inside < 6; inside++) {
console.log(inside + "×" + outside + "=" + (inside*outside) + '
');
}
}
} 字数超出最大允许值了 第四个和另一个网友的一样
全部回答
- 1楼网友:山君与见山
- 2021-01-25 07:57
别人的代码吧? 你知道是做什么的么追问这是几个挑战,要完成代码,部分代码老师已经给出。填空就好了
- 2楼网友:三千妖杀
- 2021-01-25 07:30
for(var forLoopCounter = 1; forLoopCounter <= 5; forLoopCounter++)//Put your for loop here
console.log("This is #"+ forLoopCounter +" in the for loop");
}//End of function
function challenge4(){
for(i=11;i<=21;i++){
if(i <15){
console.log("The #"+ i +" is less then 15");
}else{
if(i ==15){
console.log("The #"+ i +" is equel to 15");
}else{ console.log("The #"+ i +" is more 15");}
}
}
}
function challenge5(){
for(outside=3;outside<6;outside++){
for(inside = 3;inside<6;inside++){
console.log(inside + "*" + outside+ "=" + (inside*outside)+'\n');
}
}
}
英语看不懂,大概不知道有没有理解到,至于第三挑战完全不知道是要做什么
console.log("This is #"+ forLoopCounter +" in the for loop");
}//End of function
function challenge4(){
for(i=11;i<=21;i++){
if(i <15){
console.log("The #"+ i +" is less then 15");
}else{
if(i ==15){
console.log("The #"+ i +" is equel to 15");
}else{ console.log("The #"+ i +" is more 15");}
}
}
}
function challenge5(){
for(outside=3;outside<6;outside++){
for(inside = 3;inside<6;inside++){
console.log(inside + "*" + outside+ "=" + (inside*outside)+'\n');
}
}
}
英语看不懂,大概不知道有没有理解到,至于第三挑战完全不知道是要做什么
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯