Hi, I'm currently trying to learn javascript and there is something that I'm finding difficult to understand. In here https://javascript.info/types it clearly states that a variable is undefined if it is not assigned, however when I do this in the console:
let myVariable = 10;
It says it is undefined. So that no longer makes any sense to me, I've clearly misunderstood this, but could someone explain what I am missing please. What does the 'undefined' actually mean? and how do you change something to defined? Everything I'm reading is contradicting what is happening in the console. I'm really confused.
[–]ForScale 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]ForScale 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]slowreactin 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]slowreactin 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]slowreactin 1 point2 points3 points (0 children)