Sunstone interview question

How are parameters passed in JS? BY reference or value etc