Skip to content

Instantly share code, notes, and snippets.

@Kcko
Last active May 17, 2024 07:11
Show Gist options
  • Save Kcko/3f96dde1152e6b2707045886465bfb48 to your computer and use it in GitHub Desktop.
Save Kcko/3f96dde1152e6b2707045886465bfb48 to your computer and use it in GitHub Desktop.
/*
function in javascript is object and we can store what ever inside
*/
function x()
{
console.log('im x')
}
x.$version = '1.3.21'
x.callback = () => { console.log('what ever')}
console.log(x.$version);
x.callback();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment