have displayed to replace only the last character with the first one?
.FSDE-
to
-FSDE.
конкатинация
It isnt Nuxt
With what then?
It task is for simple js, not nuxt. Use String prototype split, then Array prototype map, save first character to variable, last one to another variable. Then replace arr[0] with last character and arr[arr.length - 1] with first one. Then use Array prototype join. That's all
Обсуждают сегодня