You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Both calls have same params but results different
// Not a pure function because of external state
// Also creates side effects
//
const getLogFileName = () => {
let currentDate = new Date();
let logName = `${currentDate.getFullYear()}-${currentDate.getMonth()}-${currentDate.getDay()}-${currentDate.getHours()}-${currentDate.getSeconds()}-${currentDate.getMilliseconds()}.log`;