Code Monkey home page Code Monkey logo

introduction's Introduction

"Introduction" Exercise

Join the chat at https://gitter.im/unioncollege-webtech/introduction

In this exercise, we will use variables, strings, arrays, and console.log to log an introduction message.

Description

Update introduction.js, adding code which does the following:

  1. Create a new variable name, and set its value equal to a String containing your first and last name (e.g. Benjamin Barber).

  2. Create a new variable age, and set its value equal to a Number representing your age in years (e.g. 33).

  3. Create a new variable major, and set its value equal to a String representing your major(s) (e.g. Computing).

  4. Create a new variable classStanding, and set its value equal to an Array containing the following five (5) values: "Freshman", "Sophomore", "Junior", "Senior", "Alumnus".

  5. Create a new variable message, and set its value equal to a String that is in this form:

    Hello! My name is <NAME>. I'm <AGE> years old, and I am a(n) <CLASS_STANDING> <MAJOR> major at Union College.

    Note that <CLASS_STANDING> should refer to the correct array item representing your class standing.

  6. Log message to the console.

Run “introduction.js” on the server using Node.js. Review it’s output to ensure it is functioning correctly.

Run node test to verify that all requirements are met (experimental).

Create an “introduction.html” file which includes “introduction.js”. View the Console in your browser’s Developer Tools to ensure that it is functioning correctly.

Testing (experimental)

If you want to test your code as you are going along, you can run this command:

node test

Completing and submitting the assignment

You are also welcome commit, push, and create a pull request before you’ve completed your solution. You can ask questions or request feedback there in your pull request. Just mention @barberboy in your comments to get my attention.

References

introduction's People

Contributors

barberboy avatar gitter-badger avatar malachi-m avatar

Watchers

 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.