1
I have the phrase: "Tomorrow it will rain". I want to take the last word and leave it like this: "rain, tomorrow will go".
I’m doing it this way:
var frase = 'Amanhã vai chover';
var palavra = strg.split(' ')[0];//
I can get the: Tomorrow... Now, how do I get the last one and leave it in the pattern above, using Javascript?
The comma was missing after "rain".
– Victor Stafusa
@Victorstafusa :o answered before breakfast... corrected! Thank you :)
– Sergio
Your answer reminds me that.
– Victor Stafusa
@Victorstafusa :)
– Sergio