Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

This should work:
***
let x = 0;

while(x < 10)
{
console.log(x);
if(x == 5) {
break;
}
x++;
}
***
2 months ago
Here is the correct code:
***
package main

import "log"

func main() {
if true {
log.Println("Going great...")
} else {
log.Fatal("Oops failed!")
}
}
***
2 months ago
Don't add the alert.

Correct code:
***
window.onload = function () {}
***
2 months ago
Hi, we are facing some issues with Internet access in the compiler environment and hence this issue. We are working on fixing this.
2 months ago
Try this code:
***
package main
import "fmt"

func main() {
var listOfTwenty [20] int
for i := 0; i < 20; i++ {
listOfTwenty[i] = i+1
}
fmt.Println("Here is the list of 20 numbers:")
for j := 0; j < 20; j++ {
fmt.Println(listOfTwenty[j])
}
}
***
2 months ago
Please share level number and lesson number.
2 months ago
Here is the correct answer:
***
function scanAndPay(item, amount)
{
console.log("Welcome to scan and pay service");
console.log(`Payment of ${amount} done for purchasing ${item}.`);
}

function orderFood(item)
{
switch(item)
{
case "Burger":
scanAndPay(item, 50);
break;
case "Cold Drink":
scanAndPay(item, 30);
break;
case "Pizza":
scanAndPay(item, 100);
break;
}
}

orderFood("Pizza");
***
2 months ago
Here is the answer:
***



My Webpage Title
























Student Sports
Jack Basketball<>/td
Jill
Jonah Hill Beer Pong



***
2 months ago
Please share level number and lesson number
2 months ago
This is the correct code:
***
#include

int main() {

printf("Here is the largest int value - %d", 2147483647);
return 0;

}
***
3 months ago
You have to write the code exactly as per the instructions.
Here is the correct code:
***
// create variables and log their values
var bestApp = "d";
console.log(bestApp);
let myNum = 1;
console.log(myNum);
console.log(true);
***
3 months ago