HTML/JavaScript Web Application Answers

Questions: 588

Answers by our Experts: 588

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

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


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.

Use the below reference image:

https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif


JAVASCRIPT Code

let myFormEl = document.getElementById("myForm");

let nameEl = document.getElementById("name");

let nameErrMsgEl = document.getElementById("nameErrMsg");

let passwordEl = document.getElementById("password");

let passwordErrMsgEl = document.getElementById("passwordErrMsg");

let resultErrMsgEl = document.getElementById("resultMsg");

nameEl.addEventListener("blur", function(event) {

  if (event.target.value === "") {

    nameErrMsgEl.textContent = "Required*";

  } else {

    nameErrMsgEl.textContent = "";

  }

});

passwordEl.addEventListener("blur", function(event) {

  if (event.target.value === "") {

    passwordErrMsgEl.textContent = "Required*";

  } else {

    passwordErrMsgEl.textContent = "";

  }

});



Library Management

Build a Library Management page .

Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif

HTTP Requests & Responses


Background Image:

https://assets.ccbp.in/frontend/dynamic-webapps/book-search-bg.png

Books URL: https://apis.ccbp.in/book-store

Example:

https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India


Method: GET

It should pass test conditions:


When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element


When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response




Library Management

In this assignment, let's build a Library Management page by applying the concepts we learned till now.

Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif

HTTP Requests & Responses

Books URL: https://apis.ccbp.in/book-store

Example:

https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India

Method: GET

It should pass test conditions:


When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element


When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response




Product of array Items

given an array integers,write JS program to get the product of the integers in the given array.

input

the input will be containing single line integers.

output

the output should be single line containing the product as shown in sample outputs.


input1

[1,2,3]

output1

[1 * 2 * 3 = 6]

input2

[-1, -2, -3]

output2

[-1*-2*-3 = -6]


Note: The Output should be displayed as [1 * 2 * 3 = 6]


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

}



CCBP Login

The goal of this coding exam is to quickly get you off the ground with CCBP Login Page

Use the below reference image:(final output)

https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif


  1. Test cases:
  2. when the HTML input element with id name lost the focus, if the value of HTML input element with id name is empty, then the text content in the HTML paragraph element with id name ErrMsg should have the error message otherwise it was an empty string
  3. when the HTML input element with id password lost the focus, if the value of HTML input element with id password empty, then the text content in the HTML paragraph element with id name passwordErrMsg should have the error message otherwise it was an empty string
  4. when the HTML button element with attribute type submit is clicked, if the values of the HTML input elements with ids name and password are not empty then the text content in HTML paragraph element with id resultMsg should be displayer "Login Success"

Capital and Country

The goal of this coding exam is to quickly get you off the ground with HTML select element

Reference image:(final output)

https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif


Test cases:

  1. page should consist only one HTML span element with a non-empty text content
  2. page should consist only one HTML paragraph element
  3. page should consist of selected as HTML attribute for the HTML option element
  4. JS code implementation should use addEventListenter with event as change
  5. when the value of the HTML select element is changed ,then the text content in the HTML paragraph element should be the selected country name
  6. page should consist only one main heading element
  7. page should consist of HTML select element
  8. page should consist of four HTML option elements with attribute as value.


pass the above all test cases....


Capital and Country

The goal of this coding exam is to quickly get you off the ground with HTML select element

Use the below reference image

https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif

Achieve the design with HTML, CSS, and functionality with JS

  • 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.

Warning

Do not delete the prefilled code in JS.


Note

HTML option element should consist of selected as an attribute for the value newDelhi by default.

Javascript:

let countries = {

  paris: "France",

  london: "United Kingdom",

  newYork: "USA",

  newDelhi: "India"

};





LATEST TUTORIALS
APPROVED BY CLIENTS