Function 2: Move Capital Letters Create a JavaScript Arrow function that meets the following requirements: Authored usin

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Function 2: Move Capital Letters Create a JavaScript Arrow function that meets the following requirements: Authored usin

Post by answerhappygod »

Function 2 Move Capital Letters Create A Javascript Arrow Function That Meets The Following Requirements Authored Usin 1
Function 2 Move Capital Letters Create A Javascript Arrow Function That Meets The Following Requirements Authored Usin 1 (78.67 KiB) Viewed 44 times
Function 2: Move Capital Letters Create a JavaScript Arrow function that meets the following requirements: Authored using arrow expression syntax (constant name moveCapitalLetters) That takes in a string parameter, of mixed casing (mix of upper and lowercase letters) The function moves all capital letters to the front of a word. The uppercase letters moved to the front, maintain their original relative order. The lowercase letters moved to the back front, maintain their original relative order Console log output is NOT permitted. The function should pass each of the illustrated examples below at a minimum. _PPAKACaRitaltetters ("béoPx!")_____ Ⓒ "¿Phax" _PRAKASARĀFAÏTatters ( "DoveMENT")______ "VENTMAKA" _PPOKAÇARÃƑÂÏÏÆtters ("shortCAKE") @ "OCAKRAHAA" I Function 3: Repeating Characters Create a JavaScript Arrow function that meets the following requirements: Authored using arrow expression syntax (constant name repeatingCharacters) That takes in a string The function returns the first character that repeats If there is no character that repeats, return -1 The function should be case sensitive (ex: "I" not equal to "į") Console log output is NOT permitted. The function should pass each of the illustrated examples below at a minimum. _FERRARinaCharacters ("Jegolar") "1" _repeatihaastete ("Gandalf") "-1" "a" _FARRARÁCharacters ("Balrog" _FERRARÁRaCharacters ("Isildur")"-1" Function 4: Capitalize First Letter of Each Word Create a JavaScript function expression that meets the following requirements: Authored using function expression syntax (with constant name capitalizeFirstLetter) That takes in a string as an argument . The function converts first character of each word to uppercase. The function returns the newly formatted string Console log output is NOT permitted. The function should pass each of the illustrated examples below at a minimum. _GODİKALÁKARÍKÆtletter/"This is a title") _GORİFAHİFRÄÄKatletter/"capitalize every word") _GARÍFAÏÃZAÄÄxatletter!"I Like Pizza") _GORİFALİZAFixatlettes ("PIZZA PIZZA PIZZA") "This Is A Title" "Capitalize Every Word" "I Like Pizza" Ⓒ "PIZZA PIZZA PIZZA" COMP1231 - ASSIGNMENT 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply