A Pen by Florian Krüger on CodePen.
Last active
December 14, 2020 15:18
-
-
Save floriankrueger/24b196246c6fab248c6aff5301a670e5 to your computer and use it in GitHub Desktop.
Yael
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
// Yael.js | |
// Family | |
// | |
// Created by Galia & Arad | |
// on Nov 30th 2020 | |
// | |
// Copyright © 2020 Family. All rights reserved | |
import { seroussi_daube as family } from './families' | |
import FamilyMember from './FamilyMember' | |
import { genders, MassUnit, unitTypes } from 'units' | |
const baby = new FamilyMember(); | |
baby.name = 'Yael'; | |
baby.createdAt = new Date(2020, 11, 30, 4, 30, 0); | |
baby.gender = genders.FEMALE; | |
baby.weight = new MassUnit({ | |
value: 3105, | |
type: unitTypes.GRAMS | |
}); | |
family.children.push(baby); | |
family.members.length; // 3 | |
baby.helloWorld(); // 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment