Coder Social home page Coder Social logo

colleengithub / hs-intro-web-design-trip-planner-meteor-web-development Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marine5aang/hs-intro-web-design-trip-planner-meteor-web-development

0.0 1.0 0.0 5 KB

License: Other

HTML 81.56% JavaScript 18.44%

hs-intro-web-design-trip-planner-meteor-web-development's Introduction

JavaScript Trip Planner

It's Time For Vacation!!

Your job is to build a trip-planner website using both the alert and prompt functions in JavaScript. You will be coding your solution in js/planner.js. You'll want to have index.html open in the browser to test your work.

You'll be using the prompt function to take in input from your user, and alert to relay information back to the user.

You can store the input from the user by using a variable:

var name = prompt('Please enter your name:');

In the example above, we've declared the variable name and set it equal to prompt('Please enter your name:'). In this line of code, the name variable will store whatever name the user enters in the text box that appears in the browser.

Now that we have the data from the user stored in the variable name, we can use that variable in our code to manipulate the data.

Get To Work

  • Step 1: Your job is to take in the follow information from the user:
name
age
trip_destination
number_of_travelers
type_of_trip (relaxing, adventure, etc)
  • Step 2: Once you have all the information you need, your job is to print out a sentence describing the user's vacation wishes and a promise to find them the best possible trip.

  • BONUS: Once the user enters what find of trip they want, see if you can figure out how to make suggestions based on what type of trip (ie: suggest a beach vacation for a relaxing trip, or hiking Machu Pichu for an adventure trip).

View JavaScript Trip Planner on Learn.co and start learning to code for free.

hs-intro-web-design-trip-planner-meteor-web-development's People

Contributors

victhevenot 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.