Signup/Sign In

Answers

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

Click on Run. In the first few HTML course lessons, you will not see anything in the output because you will be creating the webpage structure. So do not worry.
5 months ago
Please share the level and the lesson number.
5 months ago
Try this CSS
***
button {
padding: 5px;
background-color: #FFB643;
border: 0;
border-radius: 5px;
cursor:pointer;
}
***
5 months ago
Try this code:

***



Neela Prasad




https://www.studytonight.com/css/resource.v3/svg/new/search-vision.svg"/>


GOOGLE


Google make it simple!




About Me


ABCDEFGHIJKALMNOPQRSTUVWXYZZYXWVUTSRQPONMLAKJIHGFEDCBA





***
5 months ago
Here is the correct answer:
***
let x = 10;
let y = 1;
let z;
// your code comes here
(x > y)? z = x : z = y;
console.log("Value of z:" + z);
***
5 months ago
Please share the level number and lesson number so that I can help you.
5 months ago
Here is the correct answer:
***
var bestApp = 'studytonight';
let _code = 'I love coding';
let num = 007;
let $123 = 100;
console.log(bestApp);
console.log(_code);
console.log(num);
console.log($123);
***
5 months ago
Here is the correct answer:
***
function teaBreak(){
console.log("Start making tea");
console.log("Tea ready");
console.log("Enjoy the tea");
}

let teaHour;

for(teaHour=1; teaHour<=12; teaHour++)
{
if(teaHour%4 == 0)
{
teaBreak();
}
}
***

Your answer looks correct, just try to remove the last console.log statement from the function body.
5 months ago
Hey can you share more details on our WhatsApp - Our number is +919354261828

Please share a screenshot or screen recording so that we can help you with the error.
6 months ago
Hey, sorry for late reply, please try this code:
***



CSS Flex Flow




Item 1

Item 2

Item 3

Item 4

Item 5

Item 6

Item 7

Item 8




***
6 months ago
Use the name of the function as mentioned in the code, and add () after the name, and remove the semicolon from the end. It will work.
6 months ago
Try this,
***
public class TriangleType {

public static void main(String[] args) {
int side1 = 3;
int side2 = 4;
int side3 = 5;

int result = checkTriangleType(side1, side2, side3);

switch (result) {
case 1:
System.out.println("Scalene Triangle");
break;
case 2:
System.out.println("Isosceles Triangle");
break;
case 3:
System.out.println("Equilateral Triangle");
break;
case 4:
System.out.println("Error: Not a valid triangle");
break;
}
}

public static int checkTriangleType(int side1, int side2, int side3) {
if (side1 > 0 && side2 > 0 && side3 > 0) {
if ((side1 + side2 > side3) && (side2 + side3 > side1) && (side3 + side1 > side2)) {
if (side1 == side2 && side2 == side3) {
return 3; // Equilateral Triangle
} else if (side1 == side2 || side2 == side3 || side3 == side1) {
return 2; // Isosceles Triangle
} else {
return 1; // Scalene Triangle
}
} else {
return 4; // Error: Not a valid triangle
}
} else {
return 4; // Error: Not a valid triangle (negative side length)
}
}
}
***
6 months ago