Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heightSelector defaults to original variable type #5

Closed
omikolaj opened this issue Aug 4, 2017 · 2 comments
Closed

heightSelector defaults to original variable type #5

omikolaj opened this issue Aug 4, 2017 · 2 comments

Comments

@omikolaj
Copy link

omikolaj commented Aug 4, 2017

I was just wondering. As going through the lessons I noticed that the specific values are referred to using single quotes and other times they are using single quotes. Is there a difference? I do not see anything different when I was playing around with it.

Also, when I declare var heightSelector = "string" and then parse it into an int. I can only perform one operation on it as int. Subsequent operations default it back to a string. This is normal behavior correct?

@asabogal
Copy link

single or double quotes should have the same effect as long as they are not repeated in the same code line... for example:

code 1 = "("some text")" ... this will create a syntax error I believe. Instead, it should read:

code1 = "('some text')"

@Donnadieu
Copy link

Hi there,

Raising issues on GitHub should be reserved for problems with the curriculum — not difficulties solving a lab, mistakes fixed via a quick edit, or bugs with the Learn platform (such as lights not turning green or IDE issues).

This issue would be perfect for the Ask a Question (AAQ) feature, where the Technical Coaches (on supported tracks) and fellow community members can help you figure it out. For some tips on how to take full advantage of AAQ, check out this helpful article in the Learn Help Center.

If, after consulting the Help Center and AAQ, you still feel that this is an issue with the curriculum itself, please reopen the issue and provide more detail about why it's a curriculum issue, the steps needed to reproduce the issue, and any additional relevant information about your development environment (local or IDE).

Thanks! 💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@omikolaj @Donnadieu @asabogal and others