Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7f39d6e

Browse files
Add files via upload
1 parent c7d31e9 commit 7f39d6e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎Concatenation.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<html>
2+
<body>
3+
4+
<h2>JavaScript Operators</h2>
5+
6+
<p>The + operator concatenates (adds) strings.</p>
7+
8+
<p id="demo"></p>
9+
10+
<script>
11+
var txt1 = "What a very ";
12+
var txt2 = "nice day";
13+
document.getElementById("demo").innerHTML = txt1 + txt2;
14+
</script>
15+
16+
</body>
17+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /