Skip to content

Instantly share code, notes, and snippets.

View HarcourtHamsa's full-sized avatar
:atom:
Skimmin

Harcourt Hamsa HarcourtHamsa

:atom:
Skimmin
View GitHub Profile
@HarcourtHamsa
HarcourtHamsa / assignment.js
Created October 11, 2022 14:11
Class assignment
/**
* You’ve been asked by the local movie theater managers to implement some JavaScript for a new automated system they’re building.
*
*
* They want to be able to work out whether someone is allowed into a PG-13 movie or not.
*
* The rules are, if someone is 13 or over, they’re allowed in. If they’re not over 13, but they are accompanied by an adult, they’re also allowed in.
* Otherwise, they can’t see the movie.
*
* var age = 12;
// EXAMPLE USAGE
// <Wrapper>
// your code goes here
// </Wrapper>
import React, { useState, useEffect } from "react";
import {
IconButton,
Box,
CloseButton,
import express = require("express");
import multer = require("multer");
const router = express.Router();
const MongoClient = require("mongodb").MongoClient;
const mongo = require("mongodb");
var mongoose = require("mongoose");
const assert = require("assert");
const fs = require("fs");