Get Current User in SharePoint List

Make a new person/group column and use this code in web part to assign any desired person/group column to get the value of current user. In this code ‘Test’ is a list name and ‘Originator’ is the person/group column to get the value of current user once the web part initiated.