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

CCBP login




  • If the value of HTML input elements with ids name and password are not empty then the text content in the HTML paragraph element with id resultMsg should be displayed as Login Success. Otherwise, it should be displayed as Fill in the required details.



this case error



capital country



  • When the capital name is changed in the HTML select element then the text content in the HTML paragraph element should be the country name of the selected capital.



this case is error please help


The goal of this coading exam is to quickly get you off the ground eith the array method every().there is a selection going on for the civil service sector candidates have to participate in x number of events and, the condidates who score more than 75 points in every event will be selectedgiven candidatesList as input,it contains objects with the name of the condidate and an array consisting of points achieved in each event by the condidate.filter the condidates who have scored more than 75 points in every event

log the array consisting of the names of the selected candidates in the console

i/p:the i/p will be a siongle line containing an array with names of the selected candidates

constraints:keys of objects should be given in quotes

input:

[{'name':'Blake Hodges','points':[76,98,88,84]},{'name':'James Anderson','points':[0,98,12,33]},{'name':'Matthew Norton','points':[89,67,83,93]}]

output:

['Blake Hodges']


"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 myArray = JSON.parse(readLine());


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


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

let min = myArray[0], result = undefined, index = 0;

while (myArray.length) {

myArray.map((e, i)=> {

if (e < min) min = e;

index = i

})

if (min % 3 === 0 && min % 2 === 0) {

result = min;

break

}

myArray.splice(index, 1);

min = myArray[0];

}


console.log(result)


}


other logic is solutiion


<div class="bg-container text-center">

<button class="get-activity-button p-1 mt-3" id="getActivityBtn">Get Activity</button>

<div class="mt-2" id="result">

<div class="d-flex flex-row">

<div class="w-50 d-flex flex-column justify-content-center text-center">

  <p id="activityName" class="activity-name">Buyanewhousedecoration</p>

<p id="activityType" class="activity-type">recreational</p> </div>

<div class="w-50"> <img src="https://assets.ccbp.in/frontend/react-js/ranactivity/party.png" id="activityImg" class="activity-img" /></div></div></div>

<div class="d-none mt-5 mb-5" id="spinner">

<div class="d-flex flex-row justify-content-center">

<div class="spinner-border" role="status">


"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 */

}



input1

{ 'name':'Pranay', 'address':{'city':'Mumbai','state':'maharastra'}, 'nicknames':['nani','chanti']}

output2


pranay is from mumbai,maharastra

pranay has 2 nicknames



length is not defined but output is come


"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 not difined


<div class="bg-container text-center">


<button class="get-activity-button p-1 mt-3" id="getActivityBtn">Get Activity</button>


<div class="mt-2" id="result">


<div class="d-flex flex-row">


<div class="w-50 d-flex flex-column justify-content-center text-center">


<p id="activityName" class="activity-name">Buy a new house decoration</p>


<p id="activityType" class="activity-type">recreational</p>


</div>


<div class="w-50">


<img src="https://assets.ccbp.in/frontend/react-js/random-activity/party.png" id="activityImg" class="activity-img" />


</div>


</div>


</div>


<div class="d-none mt-5 mb-5" id="spinner">


<div class="d-flex flex-row justify-content-center">


<div class="spinner-border" role="status"></div>


</div>


</div>


</div>

<h1> Capital and Country </h1>

  <div class="block">

    <select name="capital" id="capital-select" >

      <option value="paris"> Paris </option>

      <option value="london"> London </option>

      <option value="newYour"> New Your </option>

      <option  value="newDelhi" selected> New Delhi </option>

    </select>

    <p class="block__text"> is the capital of ? </p>

  </div>

  <span class="county-name" id="county-name"> India </span>


Choose your destiny Blog: Create a blog where you give the reader different paths at the end of each page. A different outcome every time they play and read!

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS