how to add data from array to the table using javascript ?
var fruits =['apple' ,'orange' , ' grape' , 'banana' , 'guava' , ' watermelon' , 'mango'] ;
showFruits(){
// code here ;
}
you need to create the table inside the function and insert the array data into each cells .
this function is used in a button so when u click it u need to create a table with that array data