Object to JSON

Challenge 📝

Resources 📚

An object obj is given. Change this object to a JSON string and return it.

function object2JSON(obj) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag