JavaScript Taskbook Level 7.3
Given a paragraph containing text with words. Some words are repeated twice. By clicking on the button, delete unnecessary identical adjacent words.
Make a function that will return an array filled with N random numbers from a given range such that the numbers do not repeat.
The following data structure is given:
let data = [
{
text: '111',
href: '1.html',
},
{
text: '222',
href: '2.html',
},
{
text: '333',
href: '3.html',
},
]
Using this data, create the following layout:
<a href="1.html">111</a>
<a href="2.html">222</a>
<a href="3.html">222</a>