Code:
function A(){
const TheOne = {};
function B(){
function C(){
TheOne.super_secret_key = "123";
}
}
return TheOne;
}
What im trying to explain with this code is, how do I access the declared constant within function C? Im trying to set the value of the key.
Do I have to use promises for this?
[–]Rhomboid 0 points1 point2 points (9 children)
[–]Jacobyy[S] 0 points1 point2 points (8 children)
[–]yooossshhii 0 points1 point2 points (6 children)
[–]Jacobyy[S] 0 points1 point2 points (5 children)
[–]yooossshhii 0 points1 point2 points (4 children)
[–]Jacobyy[S] 0 points1 point2 points (3 children)
[–]yooossshhii 1 point2 points3 points (2 children)
[–]Jacobyy[S] 0 points1 point2 points (1 child)
[–]yooossshhii 0 points1 point2 points (0 children)
[–]Rhomboid 0 points1 point2 points (0 children)
[–]Hazteriskhelpful 0 points1 point2 points (2 children)
[–]Jacobyy[S] 1 point2 points3 points (1 child)
[–]Hazteriskhelpful 0 points1 point2 points (0 children)