This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var listOfCommentBox = document.getElementsByTagName("article"); | |
//get the array list of all the div-s that has the comments | |
let extractedListOfFirstComment = []; | |
// store the author details of the comment | |
let listOfDiv = []; | |
//store the div-s of the comment | |
let count =0; | |
function generateComment(name,index) { |