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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!