Giter VIP home page Giter VIP logo

take-home-assignment's Introduction

Career Lab | Take-Home Assignment (Solution Demo)

This is the take home assignment that Collabies will complete before the technical review for Career Lab.

Please fork this repo, complete the assignment, and once you are finished, send a link to your repo to the Collab Lab mentor that will be conducting your technical interview.


How-to

  1. Fork this repo. Fork button on Github
  2. Clone your fork to your local machine: git clone <url of your repo> Repo URL for cloning on Github
  3. In the project directory, run npm install && npm start
  4. Open the project at localhost:3000

Exercise: Formatting Text

Create a new React app for formatting text into paragraphs. It should accept input text, and should output the formatted text. For example, if you input the following text:

This is
a badly formatted file. This line is pretty long! It's way more than 80 characters! I feel a line wrap coming on!

This      is a second paragraph with extraneous whitespace.

Running formatter tool should output the following:

This is a badly formatted file. This line is pretty long! It's way more than 80
characters! I feel a line wrap coming on!

This is a second paragraph with extraneous whitespace.

The formatting should follow these rules:

  • Lines should not exceed 80 characters.
  • If the 81st character of a line is in the middle of the word, break the line on the closest previous space.
  • If a single word exceeds 80 characters, leave that word intact on a line by itself (this is an exception to the 80-character-per-line limit).
  • One blank line between paragraphs.
  • No more than one consecutive space or blank line in the formatted text -- collapse multiples into a single space or line.

You may use a testing library you like, but the main code must not require any additional libraries or resources beyond the standard built-in libraries.

Your code will be evaluated on three criteria:

  • Correctness: Does it follow all the instructions?
  • Code Quality: Is it readable and well structured?
  • Idiomatic Code Style: Does it follow the stylistic conventions of the language, such as indentation and capitalization?

take-home-assignment's People

Contributors

stacietaylorcima avatar segdeha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.