Some error occured while loading page for you. Please try again.
We use cookies to ensure you have the best browsing experience on our website.
Please read our cookie policy for more information about how we use cookies.
function printObjectProperty(myObject) {
//Write your code here
console.log(myObject);
}
// The below code is to show how to create an Object.
process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
_input += input;
});
process.stdin.on("end", function () {
var obj = _input.split(' ');
var myObject = new Object;
// Fill up the question marks
myObject.type = obj[0]
myObject.model = obj[1]
myObject.color = obj[2]
printObjectProperty(myObject);
This is the solution!! :)
function printObjectProperty(myObject) { //Write your code here console.log(myObject); }
// The below code is to show how to create an Object. process.stdin.resume(); process.stdin.setEncoding("ascii"); _input = ""; process.stdin.on("data", function (input) { _input += input; });
process.stdin.on("end", function () { var obj = _input.split(' '); var myObject = new Object;
});
Add Reply Preview cancel