You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f0118b
Browse filesBrowse the repository at this point in the historyBrowse files
JavaScript strings share many similarities with string implementations from other high-level languages, such as Python's. They represent text based messages and data.
4
+
5
+
In this course we will cover the basics. How to create new strings and perform common operations on them.
Concatenation involves adding two or more strings together, creating a larger string containing the combined data of those original strings. This is done in JavaScript using the **+** operator.
4
+
5
+
```js
6
+
var bigStr ='Hi '+'JS strings are nice '+'and '+'easy to add';
7
+
```
8
+
9
+
---
10
+
11
+
Add up the different names so that the `fullName` variable. Contains John's complete name.
12
+
13
+
```js
14
+
var firstName ="John";
15
+
var middleName ="James";
16
+
var lastName ="Smith";
17
+
18
+
var fullName =
19
+
```
20
+
21
+
```js
22
+
var firstName ="John";
23
+
var middleName ="James";
24
+
var lastName ="Smith";
25
+
26
+
var fullName = firstName +""+ middleName +""+ fullName;
0 commit comments