{"size": 280, "ext": "js", "max_stars_repo_path": "print_tree_variations/print-tree-pre-order.js", "max_stars_repo_name": "rebecca-pete/dsa_review", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "print_tree_variations/print-tree-pre-order.js", "max_issues_repo_name": "rebecca-pete/dsa_review", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "print_tree_variations/print-tree-pre-order.js", "max_forks_repo_name": "rebecca-pete/dsa_review", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.0, "max_line_length": 28, "alphanum_fraction": 0.5857142857}
'use strict';

const helper = (root) =>{
  if(node === null){
    return null;
  }
  console.log(node.value);
  if(node.left){
    printTree(node.left);
  }
  if(node.right){
    printTree(node.right);
  }
};

const printTree = (tree) =>{
  helper(tree.root);
};

printTree(tree);