Created
          August 30, 2021 00:48 
        
      - 
      
- 
        Save triptych/df87cf85a3e1e7eca063df0f51b613cf to your computer and use it in GitHub Desktop. 
    testing a javascript es6 module
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export const sqrt = Math.sqrt; | |
| export function square(x) { | |
| return x * x; | |
| } | |
| export function diag(x, y) { | |
| return sqrt(square(x) + square(y)); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment