size of undefined in bytes #19809
-
how much space does undefined take in the memory?.. |
Beta Was this translation helpful? Give feedback.
Answered by
boywithkeyboard
Jul 23, 2023
Replies: 1 comment 4 replies
-
@kakashi-69-xd when you don't define a value for a variable, it's value is Hope this helps! :) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
river-xd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kakashi-69-xd when you don't define a value for a variable, it's value is
undefined
. So my understanding would be 0 bytes, however this StackOverflow thread considers something different: https://stackoverflow.com/questions/50854916/javascript-memory-impact-of-null-vs-undefined. This question is rather related to Google's V8 than Deno though.Hope this helps! :)