You have the variable sentence, which contains parts of a meaningful sentence. Change the keys in this variable so that the for ... in loop will output these words in the correct order without unnecessary conversions inside the loop. Don't forget to print the values of the keys to the console!
For ... in for Objects
We try to find bugs!
Report a typo
Write a program in JavaScript
let sentence = {
1: "I",
0: "love",
2: "books"
};
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.