Question: Hey i need hep which this javascript program. can someone pls just write the code for only the commented parts where it says //TODO. //
Hey i need hep which this javascript program. can someone pls just write the code for only the commented parts where it says "//TODO".
// Add the text to the ... element in the element with id=table-title function updateTableTitle(title) { // TODO } // Add the given ... element to the table body element with id=rows function addRowToTable(row) { // TODO } // Remove all content from the table body element with id=rows function clearAllTableRows() { // TODO } // Creates and returns new table row element with the specified id value. function createTableRow(id) { // TODO } // Given a child element, create a and add this child to it. Return the . function createTableCell(child) { // TODO } // Wraps a child element in a ... and adds it to the table row function addContentToRow(child, row) { // TODO } // Given a URL src string and alt text string, create an element and return: //
function createImg(src, alt) { // TODO } // Given a string of text, create and return a TextNode // https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode function createText(text) { // TODO } // create and return an anchor element. // Muskrat. NOTE: // The innerContent will be a TextNode or HTML Img Element (i.e., it // won't be simple text). function createAnchor(href, innerContent) { // TODO } // Return a proper time element with its dateTime property set: // function createTime(formatted) { // TODO } // Given a boolean value (true/false) return a string "Yes" or "No" function toYesNo(value) { // TODO } // Converts an Observation object into DOM nodes that produce the following HTML: // // // // //
// // // // // // // Muskrat // // No // Yes // No // No // // // Things to note in your solution: // // - Give the table row an id, using the observation's id // - Create an anchor so you can click the photo and go to the observation's uri // - Use the observation's name as the alt text of the image, and photoUrl as its src // - Use a proper Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
