input: from typing import List
  
  def convert_code(code: str, from_language: str, to_language: str) -> str:
      """ Converts a given code snippet from one programming language to another.
      The code snippet is provided as a string. The function should handle basic
      syntax conversion between languages.
      >>> convert_code("let arr = [1, 2, 3, 4, 5];\narr.forEach(item => { console.log(item * 2); });", "JavaScript", "Python")
      'arr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)'
      """
output:     if from_language == "JavaScript" and to_language == "Python":
          code = code.replace("let ", "")
          code = code.replace("var ", "")
          code = code.replace("const ", "")
          code = code.replace(";", "")
          code = code.replace("console.log(", "print(")
          code = code.replace(" => {", ":")
          code = code.replace("});", "")
          code = code.replace("forEach(", "for ")
          code = code.replace("item", "item in arr")
          return code