{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Variable Names Legal and Illegal Flashcards

(4 cards)

1
Q

What illegal character is in this statement.

var product cost = 3.45;

A

A space is an illegal character in a variable name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Type the illegal character in this statement.

var P2_a%88$;

A

%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Rewrite this using camelCase.

var Nameofband;

A

var nameOfBand;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Declare a variable using nothing but all of the legal characters that aren’t alphabet characters or numbers. Don’t repeat any of them.

A

var $_;
or
var _$;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly