Jason Chan Social Media Influencer | Los Angeles
Social Media influencer – Los Angeles
YouTubeTwitter
  • Home
  • About Me
  • Contact
    • Privacy Policy
  • Photoshop
  • Videos
  • Websites
    • Spotify Song
    • Quiz
    • ajax
    • NewsLetters For Emails
    • Magic 8 Ball
    • Chatbot
    • Weather App
    • Lightbox
    • Module Spoiler
    • Mobile Menu
    • Sign Up Form
  • Privacy Policy
Menu back  
 

Daily Archives: December 2, 2015

You are here:
  1. Home
  2. 2015
  3. December
  4. 02

Javascript – Sales Tax Program

function tax (price, percent) {
		return parseFloat((price*percent/100).toFixed(2));
	}
	var randomItem = 9.85;
	var salesTax = 7.5;
	var total = randomItem + tax(randomItem, salesTax);
	console.log(total);

 

This is a program on how to calculate sales tax with javascript, because handling floats is a bit weird with javascript.

December 2, 2015Leave a commentUncategorizedBy Admin

bin/rails doesn’t work on windows

Solution:

just type it without bin

rails

Then you should be fine. Same with every other command your trying to follow

December 2, 2015Leave a commentUncategorizedBy Admin
© Copyright Jason Chan 2015 Dream-Theme — truly premium WordPress themes
Nav