-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplateString.js
More file actions
35 lines (32 loc) · 942 Bytes
/
templateString.js
File metadata and controls
35 lines (32 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const person = {
name: 'Shuvo',
isStudent: true,
profession: "Web Developer",
position: "Junior",
salary: 15000,
address: [
{
homeTown: {
village: "Munshigonj",
postOffice: "Lohjong",
thana: "Lohjong"
}
},
{
permanent_address: {
village: "Munshigonj",
postOffice: "Lohjong",
thana: "Lohjong"
},
},
{
present_address: {
village: "Genda",
postOffice: "Savar",
thana: "Savar"
}
}
]
}
const template = `${person.name} is a Student. He is a professional ${person.profession} in Soft tech LTD. in ${person.position} Developer. He Lived in ${person.address[2].present_address.village}, ${person.address[2].present_address.thana}.`;
console.log(template);