Hi I am just beginning with Angular, coming across one error,while just writing a simple skeleton program
let mod1 = function()
{
  let task1 = function()
  {
    console.log('task one executed');
  };
  let task2 = function()
  {
    console.log('tasl 2 executed')
  };
  return 
  {
    t1: task1,
    t2: task2    //error here
  };
};
let newmod = new mod1();
newmod.t1();
newmod.t2();
I am coming across an error of:
'Uncaught SyntaxError: Unexpected token :' in the //commented in front of line
 
     
    