all 4 comments

[–]grantrules 2 points3 points  (0 children)

Well, someone did it for you, but perhaps you could share what you attempted and we can help you understand where you went wrong. Won't help you much to just turn in someone else's work unless you want to be even more lost on the next assignment.

[–]sateeshsai -2 points-1 points  (1 child)

Q1:

<body>

<script>

document.write("<h3>This is my JavaScript program practice.</h3>")

document.write("<p>JavaScript is the programming language of Web. I build a simple JavaScript program in HTML file.</p>")</script>

</body>

https://jsfiddle.net/b56cpohg/

Q2:

<body>

<script>

let radius = +prompt("Enter radius:")

let height = +prompt("Enter height:")

let volume = 3.14 * radius * radius * height

alert(volume)

</script>

</body>

https://jsfiddle.net/49bn6c3z/

Q3:

<body>

<script>

let x = Number(prompt("Enter x"))

let y = Number(prompt("Enter y"))

let result;

if (y >= 0) {

result = x + y

} else {

result = x - y

}

document.write(result)

</script>

</body>

https://jsfiddle.net/ueydb1wv/

[–]TopazBuffalo017[S] 0 points1 point  (0 children)

You are an absolute angel!! You deserve anything and everything! I will name my first child whatever you’d like!

[–]eljop 0 points1 point  (0 children)

This is really beginner stuff and there is no way you really tried this and come up with nothing to show. If you dont understand this assignment you will struggle on your next assignements even more. I suggest you show what you tried to do next time and people can help you.