function sample(name,...rest){ //...variable --> indicates rest operator
console.log(name);
console.log(rest);
}
sample('Praveen',521,'praveen8642kumar@gmail.com','8688574614');
var a = [1,2,3];
var b = [6,7,8];
var c = [...a,...b]; //[...var1,...var2,............] indicates spread operator
console.log(c)
To embed this program on your website, copy the following code and paste it into your website's HTML: