mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
add solutions to first exercises
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
var ftoc = function() {
|
||||
|
||||
var ftoc = function(f) {
|
||||
return Math.round((f - 32) * (5/9) * 10) / 10
|
||||
}
|
||||
|
||||
var ctof = function() {
|
||||
|
||||
var ctof = function(c) {
|
||||
return Math.round(((c * 9/5) + 32) * 10) / 10
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user