const number1 = 2.25;
      const number2 = -4;
      const number3 = 'hello';
      const result1 = Math.sqrt(number1);
      const result2 = Math.sqrt(number2);
      const result3 = Math.sqrt(number3);
      console.log(`The square root of ${number1} is ${result1}`);
      console.log(`The square root of ${number2} is ${result2}`);
      console.log(`The square root of ${number3} is ${result3}`);
      
      Javascript language logo

      Different Data Types

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.