Skip to content

Instantly share code, notes, and snippets.

View jaskaran1989's full-sized avatar
🎯
Focusing

JSingh-swi jaskaran1989

🎯
Focusing
View GitHub Profile
@jaskaran1989
jaskaran1989 / deck.js
Created January 23, 2020 06:16
Build a Deck of Cards with OO Python
import random
class Card:
def __init__(self,suit,value):
self.suit=suit
self.value=value
def show(self):
print("{} of {}".format(self.value,self.suit))
@jaskaran1989
jaskaran1989 / gist:06facd3c58524f9590eb1c27167a46b0
Last active October 19, 2018 02:15
JavaScript Functions -filter
var scores =[3,12,5,23,19,7];
var topscores = scores.filter(score=>score>5);
console.log(topscores);