Get Mystery Box with random crypto!

parseInt will take any string and parse it to an integer of th | web development (HTML, CSS, JS)

parseInt will take any string and parse it to an integer of the specified base we pass as the second parameter.

But look if we change the base in the last statement

Even the word "flowers" is not a valid hex parseInt() will evaluate character by character instead of the entire word, so in this case, is returning the value for the "f".