can string be object used in calling a method?
toUpperCase() indeed. Note that this doesn’t actually change or store the string, for that you’d have to save it to a variable.
> str = "hello"; 'hello' > str.toUpperCase(); 'HELLO' > 'whynot'.toUpperCase(); 'WHYNOT'
Prelude Data.Char> capitalize = map toUpper Prelude Data.Char> capitalize "this is getting awfully weird" "THIS IS GETTING AWFULLY WEIRD"
i am asking about JS language
Did the first reply answer your question? Or did you mean to ask about something else?
it actually did thank you