To sum up, I have a variable (hiragana path), that is responsible of helding the path of each image. The main issue is that the path of each image depends on the random imagel label. That's why I cannot just type in every path. The solution to this is assigning a variable (hiragana path). But at the time of putting it to work, in Jquery I could not put a variable in the src. Any Help?
'''
var hiragana_img
var hiragana_letter
var hiragana_all= ['a','i','e','o','u']
var hiragana_list = {"vowels_list": ['a','i','e','o','u'],
"ka_list": ['ka','ki','ke','ko','ku']
};
function random_hiragana(hiragana_letter, hiragana_all){
hiragana_letter = hiragana_all.random();
var hiragana_path = "../../proyect_images/hiragana_v/" + hiragana_letter + ".png"
$('#core').append("<img id='hiragana_img' src='hiragana_path'/>")
return true;
''''
src='" + hiragana_path + "'hiragana_all.random();looks fishy. Arrays don't have a random() method