-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcombineStrings.js
More file actions
20 lines (15 loc) · 806 Bytes
/
combineStrings.js
File metadata and controls
20 lines (15 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
John's teacher gave him two variables. Each variable contains a string. John's teacher asked him to combine these two strings and print them in one line. Help John to write the program.
======================================================================================
Input:
The first and the second lines of the input contain the strings.
Output:
Print the result in one line:
-- Sample Input : I am going to be || an awesome web developer
-- Output : I am going to be an awesome web developer
*/
var firstString = "I am going to be";
var secondString = "an awesome web developer";
var combineStrings = firstString + " " + secondString;
console.log("The combined string is:", combineStrings);
// Final Output || The combined string is: I am going to be an awesome web developer