src/IsThisNumberPrimeResults.js
//run same logic on nested loop
run same logic on nested loop
run same logic on nested loop
function secondLoop(nestedObject) {
                    let nestedCounter = 1;
                    let htmlReturn = '';
                    for (let nestedKey in nestedObject) {
                        htmlReturn +=  `
                        <tr key=${nestedKey}>
                        <th scope="row">${nestedCounter++}</th>
                        <td>${nestedKey}</td>
                        <td>${nestedObject[nestedKey]}</td>
                        </tr>
                        `;
                    }
                    return (
                        `<table>${htmlReturn}</table>`
                    )
                }
function secondLoop ( nestedObject ) { let nestedCounter = 1 ; let htmlReturn = '' ; for ( let nestedKey in nestedObject ) { htmlReturn += ` ${ nestedKey } ${ nestedCounter ++ } ${ nestedKey } ${ nestedObject [ nestedKey ] } ` ; } return ( ` ${ htmlReturn } ` ) }
run same logic on nested loop
run same logic on nested loop