Javascript Number Type Question 8

Introduction

What is the output of the following code?



let num = 255;
console.log(num.toString(16));


ff

Note

displays ff, which is hexadecimal equivalent for 255




PreviousNext

Related