Assessment wanted for Strings skill test (4)

String 4

Which way it should be write?

or it has 3rd more optimized variant?

Assess and help wantes:

https://codepen.io/collection/ExvPer

(https://codepen.io/Drondr_Cp/pen/OJvobYE and https://codepen.io/Drondr_Cp/pen/MWVqbqd)

Hi @Andrej_Ponomarenko and welcome to the community :wave:

Your first version is the intended solution. You just put your closing backtick at the wrong spot.
Regarding the calculation of the hypotenuse I like both versions. Maybe someone who doesn’t know much about mathematics would prefer the first version, because they don’t know what x½ means. :slightly_smiling_face:

Have a nice day,
Michael

1 Like