I want this inside select element for all languages using iteration through the languages object using javaScript.
const languages = {
option1: 'English',
option2: 'Hindi',
option3: 'Tamil',
option4: 'Kannada',
option5: 'Malayalam',
}
<select>
<option value="English">"English"</option>
</select>
I tried this but it is not working at all using JavaScript:
<select>
for(const language in languages) {
<option value=`${languages[language]}`>`${languages[language]}`</option>
}
</select>
Thanks for the help !!