1. How will you create a react element without JSX?
2. const a = [1, 2, 3]
const b = a.filter(ele=>ele*2)
console.log(b);
Output: [ 1, 2, 3 ]
3. Write a function that takes n number of arrays of integers and returns an array of distinct integers i.e the integers should appear only once among the input arrays. Example: [1,2,3], [2,3,4], [3,4,5] => [1,5]. Note: number of arrays can be n. The function should work when inputs are increased or decreased.
solution:
function distinctVeal(arr){
let str=[];
for(let i=0;i