[Solved] What does Local storage's get method return if there is no value saved in the key?

What does it return if there is nothing saved in the key? null? An empty string? 0? Or False?

Return “null”. More precisely: returns a null object whose string representation is “null”



Em that blocks didnt work for me, I tried everything, “null” string logic null. false, empty string

anything works

Did you try outputting the value to a label?