- Set an environment variable called
CMDER_ROOTto your root Cmder folder (in my caseC:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. - In your IntelliJ terminal settings, use
"cmd" /k ""%CMDER_ROOT%\vendor\init.bat""as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
This course is designed as a primer for our JS In-Depth Series of Group Sessions. This is ideal for Design Track students, Developer students struggling to understand JavaScript or students with limited programming experience. We will cover the building blocks of programming with JavaScript. This course assumes little or no experience with JavaScript.First
1. Walk away with a new mental model for learning and understanding JavaScript or any programming language for that matter.
2. Understand what is a variable
3. Understand what the heck is a function
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
1 Pretend I'm not technical - Can you teach me what a function is and why we use them? Objectives: Explain a technical concept
2 What is the difference between an object and an array in JavaScript? Objectives: Demonstrate an understanding of object literals Demonstrate an understanding of arrays
- Sync vs Async
- JS executes code in a synchronous manner one function at a time one statement at a time
- JS is single threaded
- that means only one statement is executed at a time.
- Asynchronous mean two or more things happening at a time. In JS that means deferring remaining execution of a function
- We need this because some operation can take be very slow:
- What is ES6
- Let & Const
- uses block scoping
- const cannot be reassigned
- not hoisted
- Arrow Functions
- uses block scoping
- implied this value assignment
- no prototype
- The real purpose of arrow functions is to handle the THIS keyword withing nested / callback functions
A left rotation operation on an array of size shifts each of the array's elements unit to the left. For example, if left rotations are performed on array , then the array would become .
Given an array of integers and a number, , perform left rotations on the array. Then print the updated array as a single line of space-separated integers.
Input Format
The first line contains two space-separated integers denoting the respective values of (the number of integers) and (the number of left rotations you must perform). The second line contains space-separated integers describing the respective elements of the array's initial state.
Constraints
- Humans and Written Languages (10 min)
- Breaking down the following English sentence.
- "Hello. Did you know that it is 271 days until my birthday!"
- Our eyes and brains have been trained to interpret
charactersandsymbols.
- Morse code
- We can teach our brains and eyes to interpret other languages
- Let's
interpretthe followingmessage
- Breaking down the following English sentence.
... --- ...
- Humans and Written Languages (10 min)
- Breaking down the following English sentence.
- "Hello, did you know that it is 271 days until my birthday!"
- Our eyes and brains have been trained to interpret
charactersandsymbols.
- Morse code
- We can teach our brains and eyes to interpret other languages
- Let's
interpretthe followingmessage
- Breaking down the following English sentence.
... --- ...