inject html via template tags js

Solutions on MaxInterview for inject html via template tags js by the best coders in the world

showing results for - "inject html via template tags js"
Mae
02 May 2018
1const person = {
2            name: 'Anthony Smith',
3            job: 'JavaScript Developer',
4            city: 'Los Angeles',
5            bio: 'Anthony is a really cool guy that loves to teach web development!'
6        }
7
8        // And then create our markup:
9        const markup = `
10 <div class="person">
11    <h2>
12        ${person.name}
13    </h2>
14    <p class="location">${person.city}</p>
15    <p class="bio">${person.bio}</p>
16 </div>
17`;