Created
May 13, 2023 15:16
-
-
Save suhailgupta03/a74227ce0fe2a9bec54fefd89e459392 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 string1 = "mahima"; | |
var string2 = "bhat"; | |
// can concatenate (join) 2 or multiple strings | |
// using + operator | |
var fullName = string1 + " " + string2 | |
// string1 gets added to an empty string (which is a space here) | |
// which then gets added to string2 | |
// mahima + " " + bhat | |
console.log(fullName); | |
// string concatenation | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment