Create a js variable using a python function [duplicate]
تبليغسؤال
I created a Python function named get_maps() that has 2 arguments, year and category and I would like to access it from JS, customizing those 2 arguments. However the code below returns an error:
list is not specified
function onSubmit(e) {
...