src/GetAllPrimesBetweenTwoNumbersResults.js
//third loop for double nested objects
third loop for double nested objects
third loop for double nested objects
function thirdLoop(doubleNestedObject) {
                    let doubleNestedCounter = 1; 
                    let htmlReturn = '';
                    for (let doubleNestedKey in doubleNestedObject) {
                        htmlReturn +=  `
                        <tr key=${doubleNestedKey}>
                        <th scope="row">${doubleNestedCounter++}</th>
                        <td>${doubleNestedKey}</td>
                        <td>${doubleNestedObject[doubleNestedKey]}</td>
                        </tr>
                        `;
                    }
                    return (
                        `<table>${htmlReturn}</table>`
                    )
                }
function thirdLoop ( doubleNestedObject ) { let doubleNestedCounter = 1 ; let htmlReturn = '' ; for ( let doubleNestedKey in doubleNestedObject ) { htmlReturn += ` ${ doubleNestedKey } ${ doubleNestedCounter ++ } ${ doubleNestedKey } ${ doubleNestedObject [ doubleNestedKey ] } ` ; } return ( ` ${ htmlReturn } ` ) }
third loop for double nested objects
third loop for double nested objects