1. Using Javascript or Jquery, how would you select the text "foo" from the following element?
< div
>< div datafield="request"
> foo
</ div
>⟨/ div
> 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 </ div > " to bold.