I need to format a string so that it looks like:
"Expect 000062" in javascript.
In C# I do this:
String expect = String.Format("Expect {0:000000}", data.Length);
In Swift I do this:
var expect = NSString(format: "Expect %06d", data.length)
How do I do this same thing in javascript?