Answers for "js declare empty string variable"

0

empty string in javascript

var s; // undefined
var s = ""; // ""
s.length // 0
Posted by: Guest on October-29-2020
0

declare empty variable javascript

It's initialized to undefined by default, just use that, you don't have to write it out:

var obj;
If it you want to concatenate to a string, use '', for counters use 0... Just use common sense.
Posted by: Guest on March-11-2021

Code answers related to "js declare empty string variable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language