Skip to content
Advertisement

How can you erase a particular value in the list?

How can you erase a particular value in the list?

The value of the list exists.

JavaScript

If you look at the list value,

Only numeric values change before int(1-24)hour.

How can you remove int (1-24)hour and output the remaining values?

OUTPUT

JavaScript

Advertisement

Answer

Based on your expected output, you want to remove elements which contain “hour” in the value

JavaScript

Output

JavaScript
Advertisement