const user = {
  name: "Ali",
  age: 25,
  skills: ["JavaScript", "Node.js"]
};
const jsonString = JSON.stringify(user);

console.log(jsonString);
// خروجی: {"name":"Ali","age":25,"skills":["JavaScript","Node.js"]}