Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142239

Need help multiplying each number in the array by the number after it, and getting those results to show up

$
0
0

right now I have it so you can input a number into an array and then that number is displayed in descending order. What i'm having trouble with though, is c. For example, if the array was 2,4,6,3, the result would be 8, 18. So far, not sure if my code is even correct, and if it is, how to get the results of multiplying each number in the array by the number after it into a second array called "multNumbers", and how to get those results to show up on the web page.

Here is my code so far enter code herehttps://codepen.io/kaiokokokk/pen/XWWQQzj


Viewing all articles
Browse latest Browse all 142239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>