Created
December 16, 2021 02:52
-
-
Save mshumer/6603ed1de50b5381146cb9e934b0ffa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*(<seed> ////write a javascript function to divide two numbers and then multiply the resulting number by the divisor. | |
</seed>) | |
<stop>});</stop> | |
<codeType>javascriptBrowser</codeType>*/ | |
// function divide(a, b) { | |
// return a / b; | |
// } | |
// console.log(divide(10, 2) * 3); | |
////write a javascript function that returns the sum of two numbers. | |
////write a javascript function that returns the sum of three numbers. | |
// let a = 10; | |
// let b = 20; | |
// let c = 30; | |
// function addTwoNumbers() { | |
// return a + b + c; //30+20+10=60 //30+20+30=90 //30+20+40=100 //30+20+50=110 //30+20+60=120 //etc... 60, 90, 100, 110, 120... etc.. 60*2 (because we want to multiply it by 2), 90*2 (because we want to multiply it by 2), 100*2 (because we want to multiply it by 2)... etc.. until 360*2 which is 720. and 720 is divisible by 12! so the result will be 12. 12 months in 1 year. | |
/*let num1 = 10; */ ///////I'm not sure if this works properly because I haven't tested it yet but I think it should work according to what you said in class but | |
/*<output>{ | |
"console": {} | |
} | |
</output>*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment