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

Write a JavaScript and plot the data given in the


excel sheet like below


Cumulative Sum

given an array integers, write a JS program to get the cumulative sum of the items in the array


sample input1

[1, 10, 100, 1000]

sample output1

[1, 11, 111, 1111]


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

}



Magical Indices


Input

The first line of input contains an array

The second line of input contains a number

Output

The output should be a number indicating the number of valid positions

Explanation

For example, an array A = [10, 20, 30] and a value x = 25.

Sample Input 1

[1, 2, 3, 5, 7]

13

Sample Output 1

3

"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());

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


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


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

}



Trekking kit program in JS is giving only one output correctly


product of array items

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

sample input1

[1,2,3]

sample output1

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

}


INPUT:

[1,2,3]


OUTPUT:

1*2*3 = 6


INPUT:

[-1,-2,-3]


OUTPUT:

-1*-2*-3 = -6 SHOULD BE LIKE THIS


Create and test an HTML document that has at least a half-page of

text and a small box of text embedded on the left margin, with the main

text flowing around the small box. The embedded text must appear in a

smaller font and also must be set in italic.


In a new index.html file display three images (that you would be legally allowed to use for a commercial project) and do the following:

  • Select a theme that ties all three images together (for example nature, city life, gaming, etc.).
  • Give each image an appropriate alt attribute.
  • Give each image appropriate width and height attributes (retaining its original aspect ratio).
  • Give each image an appropriate title attribute.
  • Use CSS filters to change the appearance of all three of your images.
  • Underneath each image, provide information on its copyright license.

The goal of this coding exam is to quickly get you off the ground with the array method every ()


There is a selecting going on for civil service centre candidates have to participate in a number of events and the candid pose quotes more than 75 points in every event will be selected


Given candidateList as input it contains objects with name of the candidate and array consisting of poet attitude in each given by the candidate


Write a JS program to,

. Filter the candidates who have score more than 75 points in every event.

. Log the consisting of names of the selected candidates in the console


Input:

. The input will be a single line containing an array of objects candidatesList

Constraints

.keys object should be given in quotes


Sample input

[{'name:'blake,'points':[76,98,88,84]},{'name':'james','points':[098,12,33]},]



Output

[Blake]


Write a function solution that given a three digit integer N and Integer K, returns the maximum possible three digit value that can be obtained by performing at most K increases by 1 of any digit in N


Person Details

given an object person containing a person details, write a JS program to log the name, address and nicknames count.

input1

  • the input will be a single containig an object person

output2

  • the first line of output should contain the name and address of the person as shown in the sample output
  • the second line of output should contain nicknames count as shown in sample output.

input1

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

output2

pranay is from mumbai,maharastra

pranay has 2 nicknames


"use strict";

process.stdin.resume();

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

let inputString = "";

//////

/////

/////

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

}



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS