Using the spread operator to convert to JSON strings?

Tell us what’s happening:
I was wondering if the spread operator can be used to convert a JSON into a string?
Your code so far


Challenge: Use the Spread Operator to Evaluate Arrays In-Place

Link to the challenge:

I do not know off the top of my head how you would be using the spread operator to turn non string things into string

for example this ...[1,2,3] is not a string

Welcome, dubi.

I am a bit confused by this question. Do you have some code to help explain what you would expect?

Typically, JSON is converted to a string through JSON.stringify(). An example would be:

const myJSONObject = {
  "some-property": "some value"
const stringOfJson = JSON.stringify(myJSONObject);
console.log(stringOfJson); // Try this code

Hope this clarifies