We try to find bugs!

Report a typo

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!

Write a program in JavaScript
let sentence = {
1: "I",
0: "love",
2: "books"
};
___

Create a free account to access the full topic