This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table "user" ( | |
id serial primary key, | |
first_name varchar(50) not null, | |
last_name varchar(50) | |
); | |
create table "ride" ( | |
id serial primary key, | |
from_city_name varchar(100) not null, | |
to_city_name varchar(100) not null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DeckOfCard { | |
constructor(){ | |
// fill the cards | |
this.cards = []; | |
this.shuffled = []; | |
let card_type = ['HEART','DIAMOND','CLUB','SPADE']; | |
let card_number = ['ACE',2,3,4,5,6,7,8,9,10,'JACK','QUEEN','KING']; | |
card_type.map(type => card_number.map(number => | |
this.cards.push({ type, number }) |