Skip to content

Instantly share code, notes, and snippets.

@DryaginMihael
DryaginMihael / jsInterviewTasks.js
Last active March 11, 2025 12:33
JS Interview task
// 1-я задача
function foo() {
const x = 10;
return {
x: 20,
bar: () => {
console.log(this.x);
},
baz: function () {
console.log(this.x);