1. Using Javascript or Jquery, how would you select the text foo from the following element? foo 2. How would you access the number
1. Using Javascript or Jquery, how would you select the text "foo" from the following element? foo 2. How would you access the number 7 from the following object? var data = {foo: 8, bar: 32, baz:7}; 3. Write a statement to loop through the following object and log each name to the browser console. var data = {1: Joe', 2: 'Bob', 3: Jim'}; 4. Write a statement to loop through the following array and log each number to the browser console. var data = [89, 5, 3, 54, 23]; 5. What is the difference when you declare a variable with "var" vs. "let"? 6. How would you merge the following two arrays together so it becomes [1, 3, 8, 44, 99]? var foo = [1, 3, 8]; var bar = [44, 99]; 7. How would you add the number 9 to the end of the following array? var data = [3, 8, 23, 55, 10]; Write a javascript and/or JQuery statement that would hide the words " this text should be invisible." Then, change the text " this text should be bold " to bold.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started