Skip to content
Advertisement

Iterate and loop through certain nested values to use within JSON Data and Request URLs

JavaScript

I have an nested list that works as [[id, price], [id, price], [id, price], [id, price]] and I need to iterate through the [0] and the [1] value to use in the request url and json data respectively. I can’t get the variable to be used in the request url but the json data seems to work fine

Advertisement

Answer

have you tried making the url f-string?

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement