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

Fill in the blank

// returns the value doubled
const double = (n: number): number => n ____ 2;
// double(4) -> 8

Answer: * (also accepted: *)

Multiplying by 2 doubles the number.
Play Problem Solving ▸