Signup/Sign In

Answers

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

**Try this one**
***


JS Popup Boxes








***
3 years ago
**Try this one**
***



CSS Grid Item Placement




1

2

3

4

5

6

7

8

9




***
3 years ago
**Try this one **
***


Create a new HTML Element


Welcome to JS World!


  • JavaScript is fun to use.

  • JavaScript can be used for both frontend and backend.





***
3 years ago
**Try this one**
***let i;
// write your code here
for(i=2;i<=20;i+=2)
{
console.log(i + " ");
}***
3 years ago
**Try this one **
***



Accessing HTML Element in JS


This is a heading


Then comes a paragraph or a bunch of paragraphs.


So let's add another paragraph.



Hello JS!

Hello JS again!







***
3 years ago
can you please elaborate on your problem?
3 years ago
**Try this one **
***let player = {
name: "default_name",
weapon: "Pistol",
exp: "Pro",

// defining method
setName: function(name) {
this.name = name;

},
getName: function() {
return this.name;
},
showInfo: function() {
console.log(`${this.getName()} uses ${this.weapon} and is ${this.exp} level player in STBattleRoyal`);
}
};

player.setName("John Wick");
player.showInfo();
***
3 years ago
**Try this one **

***
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();
}
}
***
3 years ago
**Try this one **
***
let x = 10;
let y = 50;
let z = "10";
let xy = x >= y ;
console.log(xy);
console.log(x === z);
***
3 years ago
**Try this one**

***



<br /> My Webpage Title<br />








***
3 years ago
**Try this one **
***let x = 0;
while(x < 10)
{
if(x === 5){
x++;
continue;
}
console.log(x);
x++;
}
***
3 years ago
**Try this one **

***
let str1 = 'ambush';
let str2 = 101;
let str3 = false;
let str4=str2+' '+str3+str1;
console.log(typeof str4);
***
3 years ago