Trim-3

 

Example of trimLeft() : This is non standard function.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var str = ' Welcome to LearnKode '; str = str.trimLeft(); document.write(str); //'Welcome to LearnKode ' </script> </body> </html>
Output