Code Monkey home page Code Monkey logo

hw-week1-day3-js-functions's Introduction

Functions - Problem Set

Problems

currencyConverter(currency, amount)

Define a function currencyConverter that takes two arguments an amount and a currency (USD, GBP, EGP, BD) and returns the converted version of the amount in Riyals. Use the if-then-else construct available in Javascript.

Hint :

  • 1 Riyal = 4.68 Egyptian pound
  • 1 Riyal = 0.10 Bahraini dinar

isCharacterAVowel(character)

Write a function isCharacterAVowel that takes a character (i.e. a string of length 1) and returns true if it is a vowel and false, otherwise.


pow(base, exponent)

Define a function pow that replicates the Math.pow() method in JavaScript's Math object.


Reminder

Your opinion for this homework is very important! Please fill up the following questions when you pull request:

  • on a scale from 1 to 5, how comfortable were you with this assignment?
  • What was a win you had with this assignment?
  • What was a challenge you had with this assignment?
  • Is there anything that you'd like some further information on?
  • Other stuff on your mind? work with anyone? tell us about it!

Homework Submission

https://github.com/SEI2-jeddah/General/tree/master/homework_submission

hw-week1-day3-js-functions's People

Contributors

ahmadg1 avatar aishamu avatar

Watchers

James Cloos 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.