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
What have you tried so far?
– Kostas Minaidis
41 mins ago
You might want to do a little research and try out some things first before posting the question.
–