Skip to content

Instantly share code, notes, and snippets.

View prayuditb's full-sized avatar

Prayudi Tirta Bayu prayuditb

  • South Tangerang, Indonesia
View GitHub Profile
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,
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 })