Sobes.tech
Back to tasks
Junior — Senior
53

Определить вывод в консоль (пример 38)

Get help with live coding in real time with Sobes Copilot
Task condition

Нужно предсказать, что выведет следующий JavaScript‑код.

 const circle = {
    r: 10,
    getDiameter() {
        return this.r * 2;
    },
    getPerimeter: () => 2 * Math.PI * this.r
};

console.log(circle.getDiameter());
console.log(circle.getPerimeter());