What is the difference between (+) and (*) operators?
Question :
What is the difference between (+) and (*) operators?
The plus (+) sign is the string concatenation operator while the asterisk (*) is the repetition operator, We can concatenate strings with the "+" operator and create multiple concatenated copies of the string with the "*" operator. The use of + and * makes sense by analogy with equivalent to 4+4+4,mnwe expect 'Save' *3 to be the same as 'Save' + 'Save' + 'Save'.