0
What's the difference between prepend and apprend.
2 Answers
+ 1
Name -> Iyanuoluwa
Prepending Oluseyi to Name.
Modified name -> Oluseyi Iyanuoluwa
Appending Praise to Name.
Modified name -> Iyanuoluwa Praise
Prepending is to add something at the beginning whereas appending is to add something at the end.
+ 1
When working with text strings, append means to add text at the end of the string like an appendage or suffix.
Prepend describes inserting text in front of the string like a prefix.
Example:
Given: str1 = "break"
Append: str1 = str1 + "out"
Result: str1 = "breakout"
Prepend: str1 = "out" + str1
Result: str1 = "outbreak"