in index.js, Line 8 and 9var oddWeek = [] var evenWeek = []
is declared as a global variable. In telegram, every user is running the same instance of index.js (index.js is on server side not client side) this means that 2 users creating timetable at the same time will use the same arrays as opposed to their own arrays
in index.js, Line 8 and 9
var oddWeek = [] var evenWeek = []
is declared as a global variable. In telegram, every user is running the same instance of index.js (index.js is on server side not client side) this means that 2 users creating timetable at the same time will use the same arrays as opposed to their own arrays