File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-implement Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717function calculateBMI ( weight , height ) {
1818 let bmi = weight / ( height * height )
19- return ` ${ bmi . toFixed ( 1 ) } `
19+ return bmi . toFixed ( 1 )
2020 // return the BMI of someone based off their weight and height
2121}
2222console . log ( calculateBMI ( 80 , 1.73 ) )
Original file line number Diff line number Diff line change 1515// Use the MDN string documentation to help you find a solution
1616// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
1717
18- function UpperSnakeCase ( str ) {
19- return ` ${ str . toUpperCase ( ) . replaceAll ( " " , "_" ) } ` ;
18+ function upperSnakeCase ( str ) {
19+ return str . toUpperCase ( ) . replaceAll ( " " , "_" ) ;
2020}
21- console . log ( UpperSnakeCase ( "hello world in javascript" ) ) ;
21+ console . log ( upperSnakeCase ( "hello world in javascript" ) ) ;
You can’t perform that action at this time.
0 commit comments