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.
Create a simple Temperature calculator that will convert the temperature in Fahrenheit to Celcius Kelvin. Your calculator must include: