Answer the question
In order to leave comments, you need to log in
How to uncompile json map into regular code?
I have some ready-made site written by someone using the ember.js engine.
This code is a kind of json object. And how can I translate this json object into regular code, make corrections and then translate it back into the same map ??
Essentially I need to do the following. A variable is written/read in localStorage. I need to add a suffix to the name of this variable - the name of the current user. I found the name of the required variable in the game.map file.
For example, this line:
$('.user-level').text('Level ' + localStorage.level_progress);
function getNewNameWithPrefix (){
return 'userv_name'+level_progress;
}
$('.user-level').text('Level ' + localStorage[getNewNameWithPrefix]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question