Auto populate from current user

i’m new to this and i’m trying to auto populate current user detail into sales team DocField. how can we do that using JS.