I am currently new to javascript and running through some of my textbooks coding projects and the current problem asks to create an if statement that checks the values of the elements referenced by the name fname, lname, and zip are all non-null.
This is the code I have so far for the script
var newAccountArray = [];
function createID() {
var fname = fnameinput;
var lname = lnameinput;
var zip = zipinput;
var account = accountidbox
var fields = input;
var acctid;
var firstInit;
var lastInit;
if ( !== null)
}
I was wondering if I had to do something different for multiple variables
use if (myVar) or if (myVar !== null)