6
I was observing that in Javascript the object String
has a method called concat
. Serves to do the same thing as the operator +
ago.
"Meu nome é " + nome
Already with concat
would look like this:
"Meu nome é ".concat(nome)
Particularly, I believe with the method String.concat
would be more organized. But I would like to know first if it is guaranteed that so will work in all current browser.
Is this feature recent? Can I use it fearlessly?
Note: For the record, this question is being asked in the year 2016.
Do you swear you think it’s more organized? Safe in what way? I can’t imagine a security problem specific to this method.
– Maniero
I’m sorry, I meant "safe" in the sense of "assured it will work". kkkkk
– Wallace Maxters