'How to make from json to text in node js
I got this code and I get { prize: 'Run' }, but I want to get "Run"
const inquirer = require("inquirer");
inquirer
.prompt([
{
type: "list",
name: "prize",
message: "What do you want to do",
choices: ["Run", "Settings",]
}
])
.then((answers) => {
console.log(answers);
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
