Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

// Write a function that takes two strings (a and b) as arguments // If a contains b, append b to the beginning of a // If not, append it to the end // Return the concatenation

Andrei Achim answered on February 24, 2022 Popularity 6/10 Helpfulness 8/10

Contents


More Related Answers

  • how add strings together
  • Program to add 'ing' at the end of a given string (length should be at least 3). If the given string is already ends with 'ing' then add 'ly' i
  • 13. Write a program for concatenation of two strings.

  • // Write a function that takes two strings (a and b) as arguments // If a contains b, append b to the beginning of a // If not, append it to the end // Return the concatenation

    0
    Popularity 6/10 Helpfulness 8/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 24 2022
    Andrei Achim
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.