Answer the question
In order to leave comments, you need to log in
How to get a variable from fetch?
fetch(" api.kai-zer.ru/dev/method/products.getAll ")
.then((r) => r.json())
.then((data) => {
const result = data.response
} )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question