Skip to content

Instantly share code, notes, and snippets.

@DryaginMihael
DryaginMihael / jsInterviewTasks.js
Last active June 24, 2024 17:04
JS Interview task
// 1-я задача
function foo() {
const x = 10;
return {
x: 20,
bar: () => {
console.log(this.x);
},
baz: function () {
console.log(this.x);