JavaScript『class{}』

「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
順位 | 名前 | スコア | 称号 | 打鍵/秒 | 正誤率 | 時間(秒) | 打鍵数 | ミス | 問題 | 日付 |
---|---|---|---|---|---|---|---|---|---|---|
1 | ku | 5127 | エキスパート! | 5.2 | 98.5% | 216.1 | 1124 | 16 | 26 | 2025/03/02 |
2 | 角PA | 2659 | すごいね! | 2.8 | 94.2% | 397.0 | 1124 | 68 | 26 | 2025/03/02 |
関連タイピング
-
C言語を用いた記号・数字のタッチタイピング練習です。
プレイ回数1243英語長文220打 -
WEB系エンジニア向け
プレイ回数1749英語長文1462打 -
JavaScript暗記用です
プレイ回数3122英語長文841打 -
JavaScript 暗記用です
プレイ回数2692英語長文594打 -
Pyhonのプログラミングで使いそうな単語・記号を集めました
プレイ回数343英語短文30秒 -
TypeScript英単語タイピング(1分間ランダム)
プレイ回数170英語短文60秒 -
プレイ回数579長文記号201打
-
プログラミングを効率的に!
プレイ回数941英語短文541打
問題文
(class Signal{})
class Signal{}
(class Signal{constructor(Color){this.color=Color;} info(){console.log(this.color);}})
class Signal{constructor(Color){this.color=Color;} info(){console.log(this.color);}}
(const stop=new Signal('red');)
const stop=new Signal('red');
(stop.color;)
stop.color;
(stop.info();)
stop.info();
(class Line {static send(){console.log('Hello!');}})
class Line {static send(){console.log('Hello!');}}
(Line.send();)
Line.send();
(class Akb {constructor(member){this.name=member;}})
class Akb {constructor(member){this.name=member;}}
(class Hkt extends Akb{})
class Hkt extends Akb{}
(const rino=new Hkt('Rino'); console.log(rino.name);)
const rino=new Hkt('Rino'); console.log(rino.name);
(class Square{constructor(value){this.length=value;} area(){return this.length**2;}})
class Square{constructor(value){this.length=value;} area(){return this.length**2;}}
(class Cube extends Square {volume(){return this.length**3;}})
class Cube extends Square {volume(){return this.length**3;}}
(const box=new Cube(10); console.log(box.area(),box.volume());)
const box=new Cube(10); console.log(box.area(),box.volume());
(class Signal {constructor(Color){this.color=Color;}})
class Signal {constructor(Color){this.color=Color;}}
(class Singo extends Signal {constructor(mean){super('blue');this.mean=mean;})
class Singo extends Signal {constructor(mean){super('blue');this.mean=mean;}
(info() {console.log(`${this.color} is ${this.mean}`);}})
info() {console.log(`${this.color} is ${this.mean}`);}}
(const blue=new Singo('Go'); blue.info();)
const blue=new Singo('Go'); blue.info();
(class Blog {info(){alert('updated');}})
class Blog {info(){alert('updated');}}
(class Fb extends Blog {info2(){super.info();}})
class Fb extends Blog {info2(){super.info();}}
(const fb=new Fb(); fb.info2();)
const fb=new Fb(); fb.info2();
(class Akb {constructor(member){this.name=member;})
class Akb {constructor(member){this.name=member;}
(info(){alert(`${this.name} was Akb`);}})
info(){alert(`${this.name} was Akb`);}}
(class Hkt extends Akb{})
class Hkt extends Akb{}
(const rino=new Hkt('Rino'); rino.info();)
const rino=new Hkt('Rino'); rino.info();
(const Akb= class{constructor(winner){this.center=winner;}})
const Akb= class{constructor(winner){this.center=winner;}}
(const atuko=new Akb('Atuko'); console.log(atuko.center);)
const atuko=new Akb('Atuko'); console.log(atuko.center);