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

Array of Strings to UpperCase


https://drive.google.com/drive/folders/1vgGYsjWf_Nd2Ou4n7_Kl3QAizcaBfVos?usp=sharing


Please fill the code in "write your code here"


They were just sample outputs. There are other test cases too which should be passed


String Slicing


https://drive.google.com/drive/folders/1KPus4l0U5mppjMI4uysBd7nYyosJWCej?usp=sharing


Please fill the code in "write your code here"


They were just sample outputs. There are other test cases too which should be passed


Series of Operations


https://drive.google.com/drive/folders/1DdFpwKNXcblQ23MLLwVtX15M0gyNlkWY?usp=sharing


Please fill the code in "write your code here"


They were just sample outputs. There are other test cases too which should be passed


Html,Css and Javascript program

Please refer to the below gif image carefully

https://assets.ccbp.in/frontend/content/dynamic-webapps/bookmark-maker-output.gif

bookmark-maker

I want same exact output as in the gif image and please don't given me other programs they're not working properly. Try to understand.


Bookmark Maker

https://drive.google.com/file/d/15Otxto_PGfKJuXkbfpH5B8HkUJALOxRn/view?usp=sharing

Read each and every line carefully

Gardening


This link has Question images and the code.txt which has to be solved.

Please solve this


https://drive.google.com/drive/folders/1SZjTH9_DTzAymK7UufCg7j89_ZqcR5_X?usp=sharing



Passes test cases 3/5

Sample Input 1

1000
2
3

Sample Output 1

1060

These are just samples. There are other test cases too.

let inputString = '';

let currentLine = 0;

process.stdin.on('data', inputStdin => {

    inputString += inputStdin;

});

process.stdin.on('end', _ => {

    inputString = inputString.trim().split('\n').map(string => {

        return string.trim();

    });

    main();    

});

function readLine() {

    return inputString[currentLine++];

    return input === undefined ? undefined : JSON.parse(input);

}

function calculateFinalValueWithAppreciation(principal, time, apprPercentage) {

  let finalValue;

  finalValue = principal * (1 + time * apprPercentage / 100);

  return finalValue;

}

function main() {

    const principal = readLine();  

    const time = readLine();

    const apprPercentage = readLine();

    const finalValue = calculateFinalValueWithAppreciation(principal, time, apprPercentage);

    console.log(finalValue);

}



Passed test cases 1/4. Please solve it

Sample Input 1

200
3

Sample Output 1

570

Sample Input 2

180
1

Sample Output 2

180

These are just samples there are other test cases too.


let inputString = '';

let currentLine = 0;

process.stdin.on('data', inputStdin => {

    inputString += inputStdin;

});

process.stdin.on('end', _ => {

    inputString = inputString.trim().split('\n').map(string => {

        return string.trim();

    });

    main();    

});

function readLine() {

    return inputString[currentLine++];

}

function main() {

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

    const days = parseInt(readLine());

    let bill, discount;

    bill = dayCharge * days;

    if (days >= 2) {

      discount = 5;

      bill - (bill * discount) / 100;

    }

    if (days >= 5) {

      discount = 15;

      bill - (bill * discount) / 100;

    }

    console.log(`Total bill with the discont is ${bill}`);

}


Here in this program "aqString" was not defined please check it again

let inputString = '';

let currentLine = 0;

process.stdin.on('data', inputStdin => {

inputString += inputStdin;

});

process.stdin.on('end', _ => {

inputString = inputString.trim().split('\n').map(string => {

return string.trim();

});

main();

});

function readLine() {

return inputString[currentLine++];

}

function main() {

const inputString = readLine();

const subString = readLine();

let index = aqString.find(inputString, subString);

if (isNaN(index) && index <= inputString.length) {

console.log(inputString.split(index));

}

}


Update Pickup Point

Write a Javascript program

Given a previous pickup point in the prefilled code, and updated

pickup point area , city as inputs, write a JS factory function

with a method to update the pickup point.


Input

. The first line of input contains a string area

. The second line of input contains a string city


Output

. The output should be a single line containing the updated pickup

point area and city separated by a space


Sample Input 1

Kukatpally
Hyderabad

Sample Output 1

Kukatpally Hyderabad

Sample Input 2

Jubilee Hills
Hyderabad

Sample Output 2

Jubilee Hills Hyderabad




All test cases should be passed

Sample Input 1

true
true

Sample Output 1

Grass Trimmed
Garden Cleaned
Watered Plants

Sample Input 2

true
false

Sample Output 2

Grass Trimmed
Garden Cleaned
Water Hose Pipe Not Found

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() {

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

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

 /* Write your code here */

 const myPromise = async () => {

  try {

   /* Write your code here */  

  } catch(error) {

   /* Write your code here */ 

  }

 };

 

 myPromise();

}



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS