I have an object named myInfo
var myInfo = {
skills: ['PHP', 'Java', 'JavaScript', 'HTML', 'CSS', 'jQuery'],
languages: ['English', 'German']
}
And I want to loop over the strings inside the skills
array which is inside the myInfo
object. I've tried this but doesn't seem to work
var mySkills = '';
for (i=0, i < myInfo.skills.length, i++) {
mySkills += 'li' + myInfo.skills + 'li';
}
document.write(mySkills);
Any help will be appreciated. Maybe I went wrong somewhere in the code.