declare multiple variables at once javascript code example
Example 1: declare multiple variables javascript
let posNo=0,negNo=0,zeroNo=0;
var posNo,negNo=false,zeroNo='zero';
const posNo=0,negNo,zeroNo;
Example 2: define two variables in one line javascript
var [a,b,c,d] = [0,1,2,3]