Function zero 2 parameters JS

Hello I need help…
My function"zero" has to have 2 parameters value and count. Parameters value (string)carries value that should be reformated be the function and count tells length of the output.The idea of this function is to keep the same length of the reference number br filling leading zeros if necessary,
therefore outputted lenght of the string is always >=to the parameter “cont”.
e.g.Function zero (2,3) returns 002 or function zero(6445,2) returns 6445.

What have you tried to do? Post your code so we can help you starting with that - also, your examples don’t match what you have said…