JavaScript Demo
JavaScript / HTML/ CSS Code
Output
The string before trim:
" Trim Tutorial "
Retruned string after trim:
Execute trim method
The string before trim:
" Trim Tutorial "
Retruned string after trim:
Execute trim method