Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Using Default Values

//Using Default Values
//Default values can be assigned
//to the variables just in case the value extracted from the array is undefined.


var[greeting = "hi",name = "Sarah"] = ["hello"];

    console.log(greeting);//"Hello"
    console.log(name);//"Sarah"
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Using #Default #Values
ADD COMMENT
Topic
Name
6+4 =