Created
November 2, 2020 15:12
-
-
Save ranamahmud/3f9bc8fa7638564ff742d6a95a6d3828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = " JavaScript"; | |
var language = " JavaScript "; | |
console.log(language); | |
// JavaScript | |
var languageBoth = language.trim(); | |
console.log(languageBoth) | |
// JavaScript | |
var languageStart = language.trimStart(); | |
console.log(languageStart) | |
// JavaScript | |
var languageEnd = language.trimEnd(); | |
console.log(languageEnd); | |
// JavaScript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment