iOS Functions in Swift Functions in Swift Recap: Functions

Elena Iliasova
Elena Iliasova
iOS Development with Swift Techdegree Student 1,107 Points

func temperature

why my code does not work?

functions.swift
// Enter your code below
func temperatureInFarenheit(temperature:Double = 0.7) -> Double {
  return(temperature)
}
temperatureInFarenheit(temperature: 0.7)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,714 Points

The error you receive is: Make sure you're declaring a function named temperatureInFahrenheit

Check your spelling of Fahrenheit.