Loading
Home › Computer Science Help › Strings in java script
Status: Completed

Strings in java script

Date Posted: 05/12/2019
Category: Computer Science
Due Date: 05/12/2019
Instruction
string). #11 Strings in Javascript include a method function named search() that will search for the first occurrence of any character in a search string. For example index = phrase.search(/[ .,;:'!\?]/); finds the location of the first occurrence of a space or punctuation mark in the string named phase. The value of index is set to location of the character in the string or is set to -1 otherwise. We can use this function to write our own function for removing spaces and punctuation characters from a string. The algorithm for doing this task is as follows: ALGORITHM: Remove spaces and punctuation marks from a string PROCEDURE: index = phrase.search(/[ .,;:'!\?]/); WHILE a space or punctuation character is not found phrase = phrase.substring(0,index) + phrase.substring(index+1,phrase.length) index = phrase.search(/[ .,;;'!\?]) END WHILE Write a Javascript function strip() that takes a string as an input parameter and returns a string with all spaces and punctuation marks removed. Attach a PDF containing the source code to this function as your response to this question.
Attached
No File uploaded yet.
Bidders
surrogatewriter 6 years, 9 months ago
Rated 9.31 earned 75264.37 around 2854 assignments.
I’m an expert in this field and I promise to deliver quality within the shortest time possible. LATEST I CAN DELIVER IS AFTER 12 HOURS
$55.00
  • Sorry, I need it before 11PM tonight Central Standard time
    User_24668 | Dec 05, 2019, 17:23 PM
  • How many hours from now?
    surrogatewriter | Dec 05, 2019, 17:24 PM
  • 11 hours from now
    User_24668 | Dec 05, 2019, 17:29 PM
  • Can you help?
    User_24668 | Dec 05, 2019, 17:57 PM
  • I'm available. Can I help the other project you have deleted? I only needs 8 hours
    surrogatewriter | Dec 05, 2019, 18:10 PM
  • Yes I can help. Are you there?
    surrogatewriter | Dec 05, 2019, 18:13 PM
  • You there???
    surrogatewriter | Dec 05, 2019, 18:25 PM
  • Hello
    surrogatewriter | Dec 05, 2019, 19:09 PM
  • I’m here. Can you get it to me before the time of 11PM at 75.00? If so I’ll assign it to you. Sorry, I stepped away.
    User_24668 | Dec 05, 2019, 19:42 PM
  • I had done the one you deleted. Can I still deliver it?
    surrogatewriter | Dec 05, 2019, 19:44 PM
  • Why did you deleted that project.
    surrogatewriter | Dec 05, 2019, 19:45 PM
  • Is this "Random string program" still available? I'm done with it
    surrogatewriter | Dec 05, 2019, 19:45 PM
  • No. I figured that one out. I need the other one that I listed.
    User_24668 | Dec 05, 2019, 19:55 PM
  • Sorry, this one is available. I can assign it to you for 75.00
    User_24668 | Dec 05, 2019, 19:55 PM
  • I was working on the other one and I feel exhausted dear.
    surrogatewriter | Dec 05, 2019, 19:58 PM
  • I assigned this one to you. If you can’t do it I understand but I paid for it so please refuse the funds
    User_24668 | Dec 05, 2019, 20:00 PM
  • Hey you assigned me?
    surrogatewriter | Dec 05, 2019, 20:00 PM
  • How do I refuse now?
    surrogatewriter | Dec 05, 2019, 20:01 PM
  • Yes, if you cannot do it then please refuse it.
    User_24668 | Dec 05, 2019, 20:01 PM
  • Fine I'm working on it and in 5-7 hours, you should get it. But please, add the extra funds to add up to $75
    surrogatewriter | Dec 05, 2019, 20:15 PM
  • How do I add the additional funds?
    User_24668 | Dec 05, 2019, 20:17 PM
  • click, add bonus from your end and add the $20
    surrogatewriter | Dec 05, 2019, 20:18 PM
  • Found it.
    User_24668 | Dec 05, 2019, 20:18 PM
  • Cool, 5-7 hours will be done
    surrogatewriter | Dec 05, 2019, 20:19 PM
  • Ok .will provide the .js function - solution in pdf form as requested
    surrogatewriter | Dec 05, 2019, 20:19 PM
  • I need the entire program then I need the html and the js program split out along with the output.
    User_24668 | Dec 05, 2019, 20:23 PM
  • Inside this .zip is the .html file and the .js file you can execute them for testing purposes to see that it works:
    surrogatewriter | Dec 06, 2019, 01:33 AM
  • Here is the function in .pdf form as stated per your task requirements:
    surrogatewriter | Dec 06, 2019, 01:33 AM
  • Dear client, this is to notify you that I have finished the project and its up for review. Please remember to release the funds and rate me 10 stars. Kindly remember to clear the funds. Thank you
    surrogatewriter | Dec 06, 2019, 01:34 AM
  • I will check it and release the funds if there are no quedtions
    User_24668 | Dec 06, 2019, 01:42 AM
  • It doesn't work might need HTML with it
    User_24668 | Dec 06, 2019, 01:57 AM
  • Trying to run it to validate it but it is not working
    User_24668 | Dec 06, 2019, 01:57 AM
  • Are you there?
    User_24668 | Dec 06, 2019, 02:03 AM
  • It does work , check the screenshot i sent u that proves that it works ! Also i did sent u an .html file to test it with ---> check inside stip_solution.zip How are u trying to validate that it works ?
    surrogatewriter | Dec 06, 2019, 07:53 AM
  • irst of all , do u know how to run it and validate (like u said above ) ?
    surrogatewriter | Dec 06, 2019, 07:54 AM
  • -To do this start your web-server , deploy the .js and .html files from strip_solution.zip inside yout webroot
    surrogatewriter | Dec 06, 2019, 07:54 AM
  • and just visit the .html file url
    surrogatewriter | Dec 06, 2019, 07:54 AM
  • Otherwise here is an easier way for u to test that it works: find the attached last word document
    surrogatewriter | Dec 06, 2019, 07:55 AM
  • Let me know
    surrogatewriter | Dec 06, 2019, 08:14 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
harvardtutor 6 years, 9 months ago
Rated 8.93 earned 38096.91 around 1156 assignments.
Hey comrade, computer expert here!
$200.00
  • Sorry, I can’t pay 200
    User_24668 | Dec 05, 2019, 17:58 PM
  • How much are you willing to pay ?
    harvardtutor | Dec 05, 2019, 17:58 PM
  • I worked with you before, and I promise you quality work and on time. Thanks
    harvardtutor | Dec 05, 2019, 18:03 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
profjoseph 6 years, 9 months ago
Rated 9.35 earned 54108.42 around 1732 assignments.
hello friend,i will still help You to handle this too.kindly assign.Thank You
$300.00
  • Sorry, I can’t pay 300
    User_24668 | Dec 05, 2019, 17:57 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
truewriter 6 years, 9 months ago
Rated 9.26 earned 20430.87 around 562 assignments.
Hey dear client, nice to meet you. I'm reaching out about your assignment. Welcome to the truetutor services. Am here to help you get an A worth paper. My priority is to deliver quality and timely work. Be assured that I will follow the laid down instructions. NO PLAGIARISM OR GRAMMATICAL ERRORS.
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}