JSON string

Report a typo

Make a JSON string from the object below:

Sample Input 1:


Sample Output 1:

{"a":123,"b":["c","d"]}
Write a program in JavaScript
const obj = { a: 123, b: ['c', 'd' ] };
const jsonString = //write your code here
___

Create a free account to access the full topic