Question: Write JavaScript codes using a loop that alerts the following numbers from 10 to -10, excluding 0, in reverse, with each number separated by a

Write JavaScript codes using a loop that alerts the following numbers from 10 to -10, excluding 0, in reverse, with each number separated by a space in one line. Make sure that there are no spaces before and after the line, i.e., "10 9 8 7 6 5 4 3 2 1 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10" For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B I U s Paragraph Arial 14px !!! . IX Q 6 =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
