I need to convert all lower characters to upper and all upper to lower in some string.
For example
var testString = 'heLLoWorld';
Should be
'HEllOwORLD'
after conversion.
What is the most elagant way to implement this, without saving temp string.
I would be much more better if achieve such result using regular expressions.
Thanks.