Skip to content

Instantly share code, notes, and snippets.

View bramantyoa's full-sized avatar
🌟

Bramantyo Adhilaksono bramantyoa

🌟
View GitHub Profile
CREATE TABLE Daftar_Denda (
Id_Denda varchar(25) NOT NULL,
Judul_Denda varchar(100) NOT NULL,
Nominal_Denda int(10) NOT NULL,
Keterangan varchar(100),
PRIMARY KEY (Id_Denda));
CREATE TABLE Departemen (
Id_Departemen varchar(10) NOT NULL,
Nama_Departemen varchar(50) NOT NULL,
FakultasId_Fakultas varchar(10) NOT NULL,
@bramantyoa
bramantyoa / stack.js
Created October 28, 2016 00:35
My attemp to recall a simple stack implementation in JavaScipt
/**
From: A Gentle Introduction to Data Structures: How Stacks Work
By: Michael Olorunnisola
https://medium.freecodecamp.com/data-structures-stacks-on-stacks-c25f2633c529
**/
class Stack {
/**
the underscore before the variable names signifies to other developers these variables are private,
and shouldn’t be manipulated externally, only by the methods on the class