Question: Please help me understand this step; Create the following three global variables above the comment for the pic1() function. Begin with a comment that identifies
Please help me understand this step;
Create the following three global variables above the comment for the pic1() function. Begin with a comment that identifies the global variables.
var figElement = document.getElementById("placeholder");
var imgSource = document.getElementById("image");
/*
Student Name:
File Name: script.js
Date: 12/4/20
//global variables(){
/global variables(){
it ('`figElement` is declared', function () {
figElement = script.__get__('figElement');
});
it ('`imgSource` is declared', function () {
imgSource = script.__get__('imgSource');
});
it ('`figCap` is declared', function () {
figCap = script.__get__('figCap');
});
});
var figElement = document.getElementById("placeholder");
var imgSource = document.getElementById("image");
var figCap = document.querySelector("figcaption");
var figCap = document.querySelector("figcaption");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
