JS: storing trainee answers