learn-co-curriculum / javascript-intro-to-variable-assignment-and-declaration Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
This lesson is deployed in both Intro to JavaScript and BCP. The following text from the README is true for the BCP curriculum but not for Intro to JS:
You've already seen a couple of examples of variables being assigned:
var name = "Joe"
var height = 70
In the last two lessons, we asked you to modify name
and height
variables.
By changing var name = "Joe"
to var name = "Susan"
, you were able to modify
the name
variable assignment so that it equalled "Susan"
instead of "Joe"
.
The two lessons mentioned are not in the Intro to JS track. Perhaps this should be removed?
My IDE is missing from the browser.... Is there a way to retrieve/ restore it to continue following along?
Instructs students to follow along in the console, but not clear as to what that means in this lesson. They can open dev tools and do it that way.
this might be a global style that we need to rethink. Newbies will think it is part of javascript.
When I run the test it is not matching the screenshots. I am not seeing " 3 test failing" I am only seeing the third error "
Error: Expected 'space' to equal 'Let's talk about space.' " in the terminal. I am have run the test in the index-test.js and the index.js folders. Is there a different file I should be running them in?
Just letting you know that the last lesson completed did not go over this information:
In the last two lessons, we asked you to modify name and height variables. By changing var name = "Joe" to var name = "Susan", you were able to modify the name variable assignment so that it equalled "Susan" instead of "Joe".
I am taking the free javascript intro course, the last lesson was a console.log, console.error, and console.warn lab
No further action needed to assist me, just wanted to let yall know.
Thanks!
Section title: MULTI-LINE VARIABLE ASSIGNMENT
Sentence: ...which can be converted to: var a = 5, b = 2, c = 3, d = 'hello', e = 'goodbye'
Needed change: Missing semicolon at the end of variable declaration.
I am having a difficult time correcting the errors of this lab. I understand that the exercises be challenging to help learn through experience, yet I find there was not enough previous information given to successfully complete this lab within a reasonable time.
I have noticed that many recent users are experiencing difficulty with this lab as well. I feel that the lab is too vague. I would like more information on working with strings inside of functions as it pertains to the lab if that is possible.
Not sure if this is of much contribution but the third console image under the multi line variable part of JavaScript Variable Assignment and Declaration free course doesn't end the line with a semicolon. Not sure if it is or isnt intentional. Just figured I'd bring it up...
The directions to follow along on this page are a bit unclear. Especially considering we have access to the sandbox site and the developer tools. It would be a little more helpful to let us know where we need to access the console from.
Just a thought!
In the code example of the multi-line variable assignment, I think the condensed version is missing a semicolon at the end.
var a = 5, b = 2, c = 3, d = 'hello', e = 'goodbye'
should be
var a = 5, b = 2, c = 3, d = 'hello', e = 'goodbye';
With the console docked in the editor and content filling the visible area of the console, If the window width is adjusted below approx 2/3 screen-width the console content is pushed below the bottom of the window and cannot be seen even when scrolled all the way down. It must be forced to redraw the content which can be seen by either adjusting font-size(ctrl-shift-"-" or "+") or undocking and redocking the console from the Editor. It will also return to normal if returning to fullscreen. This may prevent users from being able to view the llesson in the browser and work in the IDE on the same shared screen without forcing the redraw mentioned above. In the attached image, the page is scrolled to its lower limit and there is two lines that can not be viewed at the bottom of the console.
I'm working the Intro to functions lab and am having trouble with the sayHiToGrandma function. I'm not entirely sure how to satisfy all 3 conditions
I know that semi-colons are optional a lot, but should we be consistent?
// declare the variable
var word;
// assign a value to the variable
word = 'bird';
console.log(word); // 'bird'
// assign another value to the variable
word = 'dog';
console.log(word) // 'dog'
Using the keyword var creates local variable, meaning that it is only accessible inside the current function in which it is declared. (If it's not declared inside a function, it's actually still global!)
Students don't know what a function is in this point– maybe call it a 'code context' or something similar?
In this module it says to try typing some variable names into the console and that I should see the value printed but for me it is not showing anything when I pull up the console. Does anybody know any common reasons I am not getting anything?
Im typing commands in the sandbox but Im not seeing any changes when I type window.word.
Am I using the sandbox correctly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.