
let o = {
get js() {
let city1 = String("st. Louis");
let city2 = String(" New York");
return {
firstCity: city1.toLowerCase(),
secondCity: city2.toLowerCase(),
}
}
}
console.log(o.js.secondCity);
https://onecompiler.com/javascript/3ynnjnzg5
3ynnjnzg5 - JavaScript - OneCompiler
Javascript Online Compiler Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is
onecompiler.com