HTML/JavaScript Web Application Answers

Questions: 680

Answers by our Experts: 648

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

I'm not getting any output to search item in a mart code So,please verify it


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

inputString += inputStdin;

});


process.stdin.on("end", (_) => {

inputString = inputString

.trim()

.split("\n")

.map((str) => str.trim());

main();

});


function readLine() {

return inputString[currentLine++];

}


function main() {

let person = JSON.parse(readLine().replace(/'/g, '"'));


/* Please do not modify anything above this line */


/* Write your code here and log the output */

}




length is undefined


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

inputString += inputStdin;

});


process.stdin.on("end", (_) => {

inputString = inputString

.trim()

.split("\n")

.map((str) => str.trim());

main();

});


function readLine() {

return inputString[currentLine++];

}


function main() {

let integers = JSON.parse(readLine());


/* Please do not modify anything above this line */


/* Write your code here and log the output */



const productArrayItems = arr => arr.reduce((a, b) => a * b)


console.log(productArrayItems(integers));

}




notthis output ----> 1*2*3=6


Area and circumference a circle



"use strict";



process.stdin.resume();


process.stdin.setEncoding("utf-8");



let inputString = "";


let currentLine = 0;



process.stdin.on("data", (inputStdin) => {


inputString += inputStdin;


});



process.stdin.on("end", (_) => {


inputString = inputString.trim().split("\n").map((str) => str.trim());


main();


});



function readLine() {


return inputString[currentLine++];


}



/* Please do not modify anything above this line */



function Circle(radius) {



/* Write your code here */



}



/* Please do not modify anything below this line */



function main() {


const radius = JSON.parse(readLine());



const circle1 = new Circle(radius);



console.log(circle1.getArea());


console.log(circle1.getCircumference());


}


Input:7


Output:153.86


43.96

Random Activity

The goal of this coding exam is to quickly get you off the ground with the DOM Manipulations.


Refer to the below image.



Achieve the given functionality using JS.


Make a HTTP request(GET method) using fetch with the URL https://apis.ccbp.in/random-activity to get a random activity.


Add loading status with Bootstrap component spinner while making an HTTP request.


CSS Border Properties

The goal of this coding exam is to quickly get you off the ground with the CSS Border Properties.

Use the below reference image.


DOM Manipulations

The goal of this coding exam is to quickly get you off the ground with the DOM Manipulations.

Use the below reference image.


the goal of this code is to quickly get you off the ground with Creating and Consuming Promises.

CREATE 3 JS PROMISES USING ASYNC/AWAIT, TRY/CATCH BLOCKS.

input

the first line of input is containing a boolean isHotWaterReady

the second line of input is containing a boolean isBreakfastReady

output

the output could be multiple strings with the appropriate response in seperate lines

based on inputs


sampleinput1

true

true


sampleoutput1

Taken Shower

Had Breakfast

Got to Work


function main() {

const isHotWaterReady = JSON.parse(readLine());

const isBreakfastReady = JSON.parse(readLine());

/* Please do not modify anything above this line */

// Write your code here


Clear Interval

The goal of this coding exam is to quickly get you off the ground with the clearInterval.

Refer to the below image.

Achieve the given functionality using JS.

  • The counter should be intially at 0.
  • When the HTML button element with the id
  • clearCount is clicked,Clear the counter timer using the clearInterval method.

Create a simple Temperature calculator that will convert the temperature in Fahrenheit to Celcius Kelvin. Your calculator must include:

  • A field for the user to enter the temperature;
  • A button that when clicked, makes the converted answer appear.
  • You must include index.html, style.css, and index.js files.
  • Comments throughout every file.
  • Buttons should include hover effects, and fields should clearly "focus" when in use.
  • Clean and professional creative styling.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS