AJAX | JavaScript | HTML | PHP Answers

Questions: 323

Answers by our Experts: 213

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

Speed Typing Test

In this assignment, let's build a Speed Typing Test by applying the concepts we learned till now.

Refer to the below image.



Instructions:

  • Add HTML container element with id speedTypingTest
  • Add HTML paragraph elements with id timer, quoteDisplay and result
  • Add HTML textarea element with id quoteInput
  • Add HTML button elements with id submitBtn and resetBtn
  • Add the Bootstrap component spinner

By following the above instructions, achieve the given functionality.

  • When the page is opened
  • Make a HTTP request to get a random quotation
  • URL: https://apis.ccbp.in/random-quote
  • Display the random quotation in the HTML paragraph element with id quoteDisplay
  • Start the timer and display the time in seconds in the HTML paragraph element with id timer
  • When a value is entered in the HTML textarea element with id quoteInput and the HTML button element with id submitBtn is clicked





Using JavaScript, Write a function called “sortNamesBySurnameAsc” that will receive an array of names by surname then first name and sort by ascending alphabetical order of Surnames
Using JavaScript, Write a function called “sortNumArrAsc” that will sort an array of integers in ascending order.
Using JavaScript, Write a function called “push”, that will perform the push operation on an array. The array and the value to be enqueued is supplied through a parameter.
Using JavaScript, Write a function called “enqueue”, that will perform the enqueue operation on an array. The array and the value to be enqueued is supplied through a parameter
Using Javascript, Write a function called “addTo” that will add a value to an array based on the position specified.

The function will accept three parameters, the array of values, the value to be entered, and a
string which identifies the position. The positions can be either ‘front’ or ‘back’. Invalid position values should throw an exception with an appropriate message. You are expected to use the appropriate methods of the array (list).
Using JavaScript, Write a function called “getEvenNums” that accepts an array as a parameter and returns an array of only even numbers extracted from the list. Your solution should use the “isEven” function.
Using JavaScript, Write a function called “isEven” that accepts a value and returns true if value is even and false otherwise.
Using Javascript, Write a function called “getSize” that accepts an array and display the number of elements in an array (list).
Using JavaScript, create a function called “generateEven” that will return array containing only even numbers between 1 and n. n is passed as a parameter to the function.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS