Python Thread Target Class Method Javascript Interview