Home Get variables outside of method (object)
 I am looking to retrieve variables outside a method, but OOP is something new for me, i'm a little stuck ... const Reservation = { play: document.getElementById('Reservation'), reset: document.getElementById('annuler'), launch_functions_sessionStorage: function () { this.onReservation(); this.displayIfChecked(); this.set_Timer(); }, displayIfChecked: function () { SOMETHING }, onReservation: function () { \$('#Reservation, .signature',).click(function () { console.log(); if (SOMETHING) { let checked = 1; } else { let checked = 0; } }); }, set_Timer: function () { Reservation.play.addEventListener('click', function(){ if('I would like to get 'checked'){} }); } }; Reservation.launch_functions_sessionStorage();  I tried to keep important information for your understanding. Meanwhile sorry for my english... Thank you very much