Signup/Sign In

Answers

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

Hi, Try this code:

***
let myvehicle = "car";
let weather = "rainy";

if(weather == "rainy")
{
if(myvehicle == "car")
{
console.log("I go to the office");
}
else if(myvehicle == "bike")
{
console.log("I Work from home");
}

}
else if(weather != "rainy")
{
console.log("I go to the office");
}
***
2 years ago
Hi, I think you haven't added script src (jquery js file url) provided in instruction.
2 years ago
Here is how you can update color property:

***
var colors = ["Blue", "Green", "Black", "White", "Purple"];
mobile.colors = colors;
***
2 years ago
Please provide level & lesson you're stuck at.
2 years ago
You need to implement the style code correctly with paragraph tag as given below:

***

Welcome Human!

***
2 years ago
Have you implemented it correctly. Please share the code you are using with respective lesson and level.
2 years ago
Alright. We are always here to help you out. Try with the below code:

***
let cookie = document.cookie;
if(cookie.search("Hello=World")>=0)
{
console.log("Cookie found");
}
else {
document.cookie = "Hello=World";
}
// fetch cookie to print value
cookie = document.cookie;
document.write(cookie);
***
2 years ago
"a" tag with an "img" tag inside it, this is typically used to create a clickable image or image hyperlink

***

Image

***
2 years ago
Please let us know in which Level you're facing issues.
2 years ago
Yes. it can be used like this:

***
#include

int main() {
int option;
printf("Enter your choice:\n");
printf("1. Name\n");
printf("2. Age\n");
scanf("%d", &option);

switch(option) {
case 1:
printf("My name is Jack Doe.\n");
break;
case 2:
printf("I am 20 years old.\n");
break;
default:
printf("Invalid option.\n");
}

return 0;
}
***
2 years ago
Can you check yours with the code below:

***
package main
import "fmt"
func areaOfRect(length float64, breadth float64) float64 {
// write code here
return length*breadth
}
func main() {
area := areaOfRect(7,9)
fmt.Println("Area of Rectangle is:", area)
}
***
2 years ago
You should colspan attribute and input element at right place as follows:

***




<br />

















***
2 years ago