let str = `Eternal Shadows, LunaWorks, PS5/Xbox Series X/PC, $59.99, RPG
Neon Drifters, HyperDrive Games, PC/Switch, $29.99, Racing
Arcane Quest: Legends of Eldoria, Mystic Studios, PC/PS5, $49.99, MMORPG
CyberKnights: Uprising, TechNova, PS4/PS5/PC/Xbox One/Xbox Series X, $69.99, Adventure
Galactic Frontiers, Starward Games, PC, $39.99, Strategy
Shadow of the Ancients, Ancient Echoes, PS5/Xbox Series X/Switch, $59.99, Adventure
Rift Breakers, Quantum Dynamics, PC/Switch, $24.99, Adventure
Phantom Brigade, Ghostware, PS4/PC/Xbox One, $34.99, Stealth
Inferno Racers, BlazeSpeed Studios, PS5/Xbox Series X/PC, $59.99, Racing
Mythos Unbound, LegendCraft, PC/PS4/Xbox One, $49.99, Stealth`
let json = [
{
"Title": "Skyward Bound",
"Publisher": "Celestial Games",
"Platform": "PC/Switch",
"Price": "$19.99",
"Genre": "Adventure"
},
{
"Title": "Ocean's Lure",
"Publisher": "Deep Blue Studios",
"Platform": "PS4/PS5",
"Price": "$49.99",
"Genre": "Racing"
},
{
"Title": "Dystopian Dreams",
"Publisher": "FutureSight Interactive",
"Platform": "PC/Xbox Series X",
"Price": "$59.99",
"Genre": "RPG"
},
{
"Title": "Castle Siege: Medieval Warfare",
"Publisher": "Historic Tales",
"Platform": "PC",
"Price": "$29.99",
"Genre": "Strategy"
},
{
"Title": "Starship Odyssey",
"Publisher": "Galaxy Games",
"Platform": "PC/Switch/PS5",
"Price": "$39.99",
"Genre": "Puzzle"
},
{
"Title": "Frostbite Chronicles",
"Publisher": "WinterWinds Entertainment",
"Platform": "Xbox One/Xbox Series X/PC",
"Price": "$59.99",
"Genre": "Survival"
},
{
"Title": "Quantum Leap",
"Publisher": "Particle Studios",
"Platform": "PS4/PC",
"Price": "$34.99",
"Genre": "Puzzle"
},
{
"Title": "Reign of the Warlords",
"Publisher": "Empire Interactive",
"Platform": "PC/PS5/Xbox Series X",
"Price": "$49.99",
"Genre": "MMORPG"
},
{
"Title": "Guardians of the Forest",
"Publisher": "Nature's Call Gaming",
"Platform": "Switch/PC",
"Price": "$14.99",
"Genre": "Indie"
},
{
"Title": "Echoes of the Fallen",
"Publisher": "Shadowlore Entertainment",
"Platform": "PS5/Xbox Series X/PC",
"Price": "$69.99",
"Genre": "Adventure"
}
]
console.log(str) // `Title: <Title>, Publisher: <Publisher>, Platform: <Platform 1>/<Platform 2>, Price: <Price>, Genre: <Genre>
console.log(json)