$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #299

What goes in the blank?

// 3.14159 -> "3.14"
const label = x.____(2);

Answer: toFixed (also accepted: toFixed, toFixed())

toFixed formats a number with a fixed count of decimals and returns a string.
Play Problem Solving ▸