What is the purpose of this javascript code structure?:
var GivenArrayOfJobs = () => {
    var selectedJob: WorkerModels.JobDetailsResponseModel = {
        JobId: "25c63b12-9e37-4be0-a8af-4cf237766317",
        WorkerId: "56e63b12-9e37-4be0-a8af-4cf237766317"
    };
    return selectedJob;
}
Specifically, I'm not sure what the following syntax indicates or its advantage over a more traditional js implementation:
var GivenArrayOfJobs = () => {
 
     
    