Signup/Sign In

Answers

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

Here is the correct code:
***
let txt1 = 'Yokozuna';
let txt2 = 'Yokohama';

if(txt1.length == txt2.length) {
console.log("Both are same");
}
***
9 months ago
Your answer is correct, its just that our system is a little strict. This should work:
***
let x = true;
let y = false;

// apply AND operator
console.log(x && !y)

// apply OR operator
console.log(!x || y)
***
9 months ago
Can you share the level number and lesson number so that I can help you.
9 months ago
This should work:
***
let x = 0;

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

import "log"

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

Correct code:
***
window.onload = function () {}
***
10 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.
10 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])
}
}
***
10 months ago
Please share level number and lesson number.
10 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");
***
10 months ago
Here is the answer:
***



My Webpage Title
























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



***
10 months ago