HTML Editor
Run
<!DOCTYPE html> <html lang="en-US"> <body> <p>Check your console (Press F12)</p> <script> var str = " Hello there "; console.log(str); // Trim unnecessary spaces var result = str.trim(); console.log(result); </script> </body> </html>
OUTPUT
×
Save as
Private
Tag
AJAX
Canvas
CSS
Google Charts
HTML
Javascript
jQuery
JSON
SASS
SVG
Description
Save