Skip to content

Instantly share code, notes, and snippets.

View sw1tch3roo's full-sized avatar
🏠
Working from home

Dmitry sw1tch3roo

🏠
Working from home
View GitHub Profile
@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);