Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROGRAMMING HOMEWORK HELP! You are NOT allowed to use the JavaScript .split() function I need help. I need to make a text area and a
PROGRAMMING HOMEWORK HELP!
You are NOT allowed to use the JavaScript .split() function
I need help.
I need to make a text area and a button, when you type info and hit the button, it should have the following requirements.
Thank you.
Requirements HTML . Include an area for users to enter text Include a button that a user can click to trigger the analysis of the input text Include 4 paragraph elements that will be used to display the calculated stats Statistics This is what the rendered HTML should look like before a user presses the button. JavaScript When the button is clicked, do the following: . Assign the value of the text area input to a variable Loop over the input and keep track of the o total number of sentences (Hint: How do you know when a sentence ends?) o average words per sentence o total number of spaces Change the text of the 4 paragraph elements to display these four calculated stats. (Hint: innerHTML) Hello world! This is my Coding from Scratch final project. It's pretty cool, isn't it? Statistics There are an average of 5 words per sentence There are 14 spaces in this text. There are 15 words in this text. There are 3 sentences in this text. This is an example of what should show up after the user clicks the button
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started