# interview question
Q: const list = [1,2,3,4]
const guestList = ([x, ...y]) =>{
return (x,y);
};
console.log(guestList(list));
Ans: [2,3,4] because javascript return only one element.
Q: user ={name:"test", age:21}
const guest =(user.name, user.age);
console.log(guest(user));
Ans: error because guest is not a function
but if console.log(guest);
Then give 21 because javascript return only one element.
let person = [1,2,3];
const members = (person);
person = [{name:"jahan"}];
console.log(members);
console.log(person);
Q. data type in javascript?
Ans: string, number, boolean, object, undefine, null,
Q. primitive and non primitive data type in java script?
Q. <div>vbvb</div>
<div>vbvb</div>
<div>vbvb</div>
display flex se kaise isko ek hi column main rakhege?
Ans: <div style="display:flex; flex-direction:row;">
<div>vbvb</div>
<div>hghgh</div>
<div>hjkhjk</div>
</div>
uske upper wrapper class main flex property add kar denge.
Q. <span>vbvb</span>
<span>vbvb</span>
<span>vbvb</span>
display flex se kaise isko ek hi column main rakhege?
Ans: <span style="display:flex; flex-direction:column;">vbvb</span>
<span style="display:flex; flex-direction:column;">vbvb</span>
<span>vbvb</span>
Q. <div class="abc">ads</div>
javascript se kaise abc class ko xyz class change karege?
Q. web application in html?
Q. web socket in html?
Q. css3 properties?
Q.