JavaScript『Object』(データ型)

投稿者marineプレイ回数504
難易度(4.5) 2166打 英語タグJavaScript 暗記用 Object 学習
JavaScript 暗記用です
文字数2000文字以上になってしまいました…(^^;
★情報元のサイト様★
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
順位 名前 スコア 称号 打鍵/秒 正誤率 時間(秒) 打鍵数 ミス 問題 日付
1 hakushak 4204 スペシャリスト! 4.4 94.9% 487.8 2166 115 39 2020/09/07
2 k 2932 すごいね! 3.0 96.8% 714.3 2166 71 39 2020/10/16
3 2821 すごいね! 2.9 95.6% 732.6 2166 99 39 2020/09/13
4 k 2745 すごいね! 2.9 94.5% 743.4 2166 125 39 2020/09/19
5 841 明日があるさ! 0.9 93.7% 2400.3 2166 145 39 2020/09/20

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(Object)

Object

(obj={key1:value1,key2:value2})

obj={key1:value1,key2:value2}

(prototype)

prototype

(property)

property

(method)

method

(var p={os:'mac',info:function(){alert(`${this.os}`);}}; var c=Object.create(p);c.os='win';c.info();)

var p={os:'mac',info:function(){alert(`${this.os}`);}}; var c=Object.create(p);c.os='win';c.info();

(var d=new Date();Date.prototype.d1='2020'; console.log(d.d1);)

var d=new Date();Date.prototype.d1='2020'; console.log(d.d1);

(var user={name:'Nana',age:20}; Object.getPrototypeOf(user);)

var user={name:'Nana',age:20}; Object.getPrototypeOf(user);

(var p={x:7,y:8,re:function(){return this.x*this.y;}}; var c={};Object.setPrototypeOf(c,p);c.re();)

var p={x:7,y:8,re:function(){return this.x*this.y;}}; var c={};Object.setPrototypeOf(c,p);c.re();

(function p(){};var c=new p(); alert(p.prototype.isPrototypeOf(c));)

function p(){};var c=new p(); alert(p.prototype.isPrototypeOf(c));

(var obj={x:100,y:200}; console.log(Object.keys(obj));)

var obj={x:100,y:200}; console.log(Object.keys(obj));

(var obj={x:10,y:20}; console.log(Object.values(obj));)

var obj={x:10,y:20}; console.log(Object.values(obj));

(var obj={x:1,y:2}; console.log(Object.entries(obj));)

var obj={x:1,y:2}; console.log(Object.entries(obj));

(var obj=Object.fromEntries([['x',1],['y',2]]); console.log(obj);)

var obj=Object.fromEntries([['x',1],['y',2]]); console.log(obj);

(var obj={x:10,r:function(){}}; alert(Object.getOwnPropertyNames(obj));)

var obj={x:10,r:function(){}}; alert(Object.getOwnPropertyNames(obj));

(Object.getOwnPropertySymbols(obj))

Object.getOwnPropertySymbols(obj)

(var c=Object.create({x:1});c['y']=200; alert(c.hasOwnProperty('y'));)

var c=Object.create({x:1});c['y']=200; alert(c.hasOwnProperty('y'));

(var obj={};obj.key1=1; alert(obj.propertyIsEnumerable('key1'));)

var obj={};obj.key1=1; alert(obj.propertyIsEnumerable('key1'));

(var obj={};Object.defineProperty(obj,'key2',{value:2,}); console.log(obj.key2);)

var obj={};Object.defineProperty(obj,'key2',{value:2,}); console.log(obj.key2);

(Object.defineProperty (obj,'key3',{value:3,writable:true});)

Object.defineProperty (obj,'key3',{value:3,writable:true});

など

(Object.defineProperty (obj,'key4',{value:4,configurable:true});)

Object.defineProperty (obj,'key4',{value:4,configurable:true});

(Object.defineProperty(obj,'k5',{value:5,enumerable:true}); for(var p in obj){console.log(p);})

Object.defineProperty(obj,'k5',{value:5,enumerable:true}); for(var p in obj){console.log(p);}

(Object.defineProperty(x,'a',{get(){alert(a);return a;}, set(value){alert(value);a=value;}});x.a=1;var n=x.a;)

Object.defineProperty(x,'a',{get(){alert(a);return a;}, set(value){alert(value);a=value;}});x.a=1;var n=x.a;

(Object.defineProperties (obj,{a:{value:1,},b:{value:2},});)

Object.defineProperties (obj,{a:{value:1,},b:{value:2},});

(var obj={key8:8}; console.log(Object.getOwnPropertyDescriptor(obj,'key8'));)

var obj={key8:8}; console.log(Object.getOwnPropertyDescriptor(obj,'key8'));

(var obj={a:1}; console.log(Object.getOwnPropertyDescriptors(obj));)

var obj={a:1}; console.log(Object.getOwnPropertyDescriptors(obj));

(var obj={x:1};Object.freeze(obj); obj.x=2;console.log(obj.x);)

var obj={x:1};Object.freeze(obj); obj.x=2;console.log(obj.x);

(alert(Object.isFrozen(obj));)

alert(Object.isFrozen(obj));

(obj={x:1};Object.seal(obj); obj.y=3;obj.x=2;console.log(obj);)

obj={x:1};Object.seal(obj); obj.y=3;obj.x=2;console.log(obj);

(alert(Object.isSealed(obj));)

alert(Object.isSealed(obj));

(var obj={x:1};Object.preventExtensions(obj); obj.z=3;console.log(obj);)

var obj={x:1};Object.preventExtensions(obj); obj.z=3;console.log(obj);

(console.log(obj.constructor);)

console.log(obj.constructor);

(var tg={key1:1};var obj1={key2:2}; Object.assign(tg,obj1);console.log(tg);)

var tg={key1:1};var obj1={key2:2}; Object.assign(tg,obj1);console.log(tg);

(Object.is(123,123); Object.is(-0,0);)

Object.is(123,123); Object.is(-0,0);

(console.log(new Number(2.3).valueOf());)

console.log(new Number(2.3).valueOf());

(var x={_y:'',set y(y){alert(y);this._y=y;}, get y(){alert(this._y);return this._y;}};x.y=1;y=x.y;)

var x={_y:'',set y(y){alert(y);this._y=y;}, get y(){alert(this._y);return this._y;}};x.y=1;y=x.y;

(var a={x:2};var b={y:4,z:6}; var c={...a,...b};console.log(c);)

var a={x:2};var b={y:4,z:6}; var c={...a,...b};console.log(c);

(var{x,y,...rest}={x:2,y:4,z:6,r:8}; console.log(rest);)

var{x,y,...rest}={x:2,y:4,z:6,r:8}; console.log(rest);

(function User(n,a){this.N=n;this.A=a;} new User('Mari',20);)

function User(n,a){this.N=n;this.A=a;} new User('Mari',20);

問題文を全て表示 一部のみ表示 誤字・脱字等の報告

◆コメントを投稿

※他者を中傷したり、公序良俗に反するコメント、宣伝行為はしないでください。

※このゲームにコメントするにはログインが必要です。

marineのタイピング

オススメの新着タイピング

タイピング練習講座 ローマ字入力表

人気ランキング

注目キーワード