jsartisan / frontend-challenges

FrontendChallenges is a collection of frontend interview questions and answers. It is designed to help you prepare for frontend interviews. It's free and open source.
https://frontend-challenges.com
27 stars 4 forks source link

69 - Two functions - one object - javascript #72

Open jsartisan opened 4 months ago

jsartisan commented 4 months ago

index.js

const sharedObject = {};

export function A() {
  return sharedObject;   
}

export function B() {
   return sharedObject;
}