0% found this document useful (0 votes)
46 views

Unit 2 General Test Course 3 - 100POINTS

The document discusses JavaScript functions for defining properties, creating symbols, and adding iterator methods to different object types. It also contains code for scheduling callbacks and tasks using requestIdleCallback. Various constants and helper functions are defined for scheduling work, including prioritizing tasks and clearing the task queue.

Uploaded by

Hilthongidalthi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Unit 2 General Test Course 3 - 100POINTS

The document discusses JavaScript functions for defining properties, creating symbols, and adding iterator methods to different object types. It also contains code for scheduling callbacks and tasks using requestIdleCallback. Various constants and helper functions are defined for scheduling work, including prioritizing tasks and clearing the task queue.

Uploaded by

Hilthongidalthi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Home | Help | Sign out

(function(){'use strict';var g;function h(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}


var k="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)ret
function aa(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typ
object");}
var l=aa(this);function m(a,b){if(b)a:{var c=l;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=
Report for Ramos Orozco, HIlthon Gidalthi Date submitted: 08 Mar 2024
m("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_
function c(f,y){this.g=f;k(this,"description",{configurable:!0,writable:!0,value:y})}
Activity assigned
if(a)return by Sánchez, Mónica
a;c.prototype.toString=function(){return this.g};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
Activity Score
m("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int
d=l[b[c]];"function"===typeof
Part 1 d&&"function"!=typeof d.prototype[a]&&k(d.prototype,a,{configurable:!0,writable:!0,value:function(){ret
100%
function ba(a){a={next:a};a[Symbol.iterator]=function(){return this};
Part 2a}
return 100%
function n(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.lengt
varPart 3
ca="function"==typeof Object.create?Object.create:function(a){function b(){} 100%
b.prototype=a;return new b},p;
Part 4 100%
if("function"==typeof Object.setPrototypeOf)p=Object.setPrototypeOf;else{var q;a:{var da={a:!0},r={};try{r.__proto__=da;q=r.a;break a
Part 5
a}:null}var t=p; 100%
m("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);ret
Part 6 ea(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),don
function 100%
e[Symbol.iterator]=function(){return e};
Totale}
return Score 100%
m("Array.prototype.values",function(a){return a?a:function(){return ea(this,function(b,c){return c})}});/*

2
Copyright Unit
The 2Closure
Review Tests
Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
Part 1
var u=this||self;function v(a){a=a.split(".");for(var b=u,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}
3/3
function w(a,b){a=a.split(".");var c=u;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a
;var x,z=v("CLOSURE_FLAGS"),A=z&&z[610401301];x=null!=A?A:!1;var B,C=u.navigator;B=C?C.userAgentData||null:null;function D(a){return x
functionListen to the
E(a){var conversations. Look at the pictures and type the
b;a:{if(b=u.navigator)if(b=b.userAgent)break letter of the correct picture to match
a;b=""}return-1!=b.indexOf(a)} 100%
each
;function conversation.
F(){return x?!!B&&0<B.brands.length:!1}
function G(){return F()?D("Chromium"):(E("Chrome")||E("CriOS"))&&!(F()?0:E("Edge"))||E("Silk")}
;!E("Android")||G();G();E("Safari")&&(G()||(F()?0:E("Coast"))||(F()?0:E("Opera"))||(F()?0:E("Edge"))||(F()?D("Microsoft Edge"):E("Edg
H=Math.max,fa=H.apply,I=Object.values({ca:1,aa:2,Z:4,fa:8,ea:16,da:32,U:64,ha:128,Y:256,X:512,ba:1024,V:2048,ga:4096,W:8192}),J;if(I
(K=ha.next()).done;)L.push(K.value);J=L}fa.call(H,Math,J);Object.freeze(new function(){});
Object.freeze(new function(){});function M(){this.s=this.s;this.B=this.B}
M.prototype.s=!1;M.prototype.dispose=function(){this.s||(this.s=!0,this.G())};
M.prototype.G=function(){if(this.B)for(;this.B.length;)this.B.shift()()};var N=u.window,ia,ja,O=(null==N?void 0:null==(ia=N.yt)?void 0
O[a]:b}
;function ka(a,b){a=P("EXPERIMENT_FLAGS",{})[a];return void 0===a&&void 0!==b?b:Number(a||0)}
;var la=ka("web_emulated_idle_callback_delay",300),ma=1E3/60-3,na=[8,5,4,3,2,1,0];
function Q(a){a=void 0===a?{}:a;M.call(this);this.i=[];this.h={};this.D=this.g=0;this.C=this.l=!1;this.u=[];this.A=this.F=!1;for(var
[];this.j=0;this.N=a.timeout||1;this.o=ma;this.m=0;this.H=this.R.bind(this);this.M=this.T.bind(this);this.J=this.O.bind(this);this.K=t
AGS",{}).disable_scheduler_requestIdleCallback,b=!("string"===
typeof b&&"false"===b?0:b);this.I=b;(this.v=!1!==a.useRaf&&!!window.requestAnimationFrame)&&document.addEventListener("visibilitychang
Q.prototype=ca(M.prototype);Q.prototype.constructor=Q;if(t)t(Q,M);else for(var R in M)if("prototype"!=R)if(Object.defineProperties){v
c=Date.now();S(b);b=Date.now()-c;a.l||(a.o-=b)}
function sa(a,b,c,d){++a.D;if(10===c)return ra(a,b),a.D;var e=a.D;a.h[e]=b;a.l&&!d?a.u.push({id:e,priority:c}):(a.i[c].push(e),a.C||a
function ta(a){a.u.length=0;for(var b=5;0<=b;b--)a.i[b].length=0;a.i[8].length=0;a.h={};U(a)}
function T(a){if(a.i[8].length){if(a.A)return 4;if(!document.hidden&&a.v)return 3}for(var b=5;b>=a.j;b--)if(0<a.i[b].length)return 0<
function ua(a){var b=v("yt.logging.errors.log");b&&b(a)}
function S(a){try{a()}catch(b){ua(b)}}
function va(a){for(var b=n(na),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1}
g=Q.prototype;g.P=function(a){var b=void 0;a&&(b=a.timeRemaining());this.F=!0;V(this,b);this.F=!1};
g.T=function(){V(this)};
g.O=function(){wa(this)};
g.S=function(a){this.A=!0;var b=T(this);4===b&&b!==this.m&&(U(this),this.start());V(this,void 0,a);this.A=!1};
g.R=function(){document.hidden||wa(this);this.g&&(U(this),this.start())};
function wa(a){U(a);a.l=!0;for(var b=Date.now(),c=a.i[8];c.length;){var d=c.shift(),e=a.h[d];delete a.h[d];e&&S(e)}xa(a);a.l=!1;va(a)&
-00:08
function xa(a){for(var b=0,c=a.u.length;b<c;b++){var d=a.u[b];a.i[d.priority].push(d.id)}a.u.length=0}
function V(a,b,c){a.A&&4===a.m&&a.g||U(a);a.l=!0;b=Date.now()+(b||a.o);for(var d=a.i[5];d.length;){var e=d.shift(),f=a.h[e];delete a.
a.j:d;if(!(Date.now()>=b)){do{a:{c=a;e=d;for(f=3;f>=e;f--)for(var y=c.i[f];y.length;){var oa=y.shift(),pa=c.h[oa];delete c.h[oa];if(p
Example:
g start=function(){this C=!1;if(0===this g)switch(this m=T(this) this m){case 1:var a=this K;this g=this I?window requestIdleCallback
C

-00:08

1 D

-00:16

2 A

-00:08

3 B
Part 2
8/8
Match the movie genre listed on the left with the correct description listed on the right. 100%

4
an animated film is funny and makes people laugh

a musical has a lot of singing and dancing

an action film gives true facts and information

a comedy tells a story about what might happen in


the future
a documentary
is made with a series of drawings, models,
a drama
etc.
A horror film
is frightening or scary
a science fiction film
tells a serious, emotional story

has a lot of adventure and violence

Part 3
6/6
Read each conversation. Then choose the correct answer. 100%

Example:
Jenn is tired. She'd rather not go out to see a movie.

5 A: I'd like to see a horror movie. How about you?

B: I’d rather not. Horror movies really scare me!

6 A: Would your parents like to see a science fiction film tonight?

B: I think they would .

7 A: What would the kids rather do : watch a movie at home or go to the theater?

B: I think they would rather watch one at home.

Part 4
4/4
Choose the word that correctly completes each sentence. 100%

Example:
I almost fell asleep because the movie was so boring .

8 She told a silly story that no one believed.

9 Mom thinks it's bad for children to watch violent movies.


10 I didn't like this movie. It was weird .

11 If you enjoy love stories, you should see this romantic film.

Part 5
6/6
Drag and drop the words to complete the letter. 100%

12

recently always just still since for lately

Dear Nathan,

How are you? Did you know that I moved recently ? I've lived in San Diego for two months. It's really great! I've

always wanted to live in California. I have a very nice apartment, but I still haven't bought any furniture. I

went to London on a business trip and just got back. Next week, I'm going to Buenos Aires. I haven't been there

since 2002! What have you been up to lately ? Write soon!

Your friend,

Marsha

Part 6
4/4
Read the article. Then choose True or False for each statement. 100%

13 Lord of the Rings is a fantasy film.


True
False
Example:
Avatar made the most money of any movie in
history.
14 Dramas make the most money. 15 Titanic is a drama.
True
True
False True
False False

16 There are several comedies on the top-ten list.


True
False

Exit Next

© 2023 Pearson English | Manage Preferences | Terms and conditions | Privacy notice | Cookie policy | Report a problem | Credits

You might also like