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
/** | |
* 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; |
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
// EXAMPLE USAGE | |
// <Wrapper> | |
// your code goes here | |
// </Wrapper> | |
import React, { useState, useEffect } from "react"; | |
import { | |
IconButton, | |
Box, | |
CloseButton, |
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
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"); |