Question:
How would you change the code below to make chargeVoltage an optional property? function printCar(car: { make: string model: string year: number chargeVoltage: number })
Author: John PencolaAnswer:
Add the optional operator (?) ie: chargeVoltage?: number
0 / 5 Â (0 ratings)
1 answer(s) in total