variables

You are here: Home » variables

Introduction to JavaScript – Variables: Review

By |2019-02-10T03:07:40-04:00April 24th, 2018|Categories: Computer Programming Languages, Course 1 - Intro To JavaScript, JavaScript|Tags: , , , |

Introduction to JavaScript - Variables: Review Great work! 8-) This lesson covered a lot of foundational skills that you will often use in your future programming endeavours. Let's review what we learned: Introduction to JavaScript - Variables: Review   Variables hold reusable data in a program. JavaScript will throw an error if you try to [...]

Introduction to JavaScript – Variables: String Interpolation II

By |2019-02-10T03:43:27-04:00April 24th, 2018|Categories: Computer Programming Languages, Course 1 - Intro To JavaScript, JavaScript|Tags: , , , |

Introduction to JavaScript - Variables: String Interpolation II In the newest version of JavaScript (ES6) we can insert variables into strings with ease, by doing two things: 1) Instead of using quotes around the string, use backticks (this key is usually located on the top of your keyboard, left of the 1 key (see images [...]

Introduction to JavaScript – Variables: String Interpolation

By |2019-02-08T19:17:12-04:00April 24th, 2018|Categories: Computer Programming Languages, Course 1 - Intro To JavaScript, JavaScript|Tags: , , , |

Introduction to JavaScript – Variables: String Interpolation In previous exercises, we assigned strings to variables. Here, you will learn how to insert the content saved to a variable into a string. The JavaScript term for inserting the data saved to a variable into a string is string interpolation. The + operator, known until now as [...]

Introduction to JavaScript – Variables: Undefined

By |2019-02-10T04:37:29-04:00April 23rd, 2018|Categories: Computer Programming Languages, Course 1 - Intro To JavaScript, JavaScript|Tags: , , , |

Introduction to JavaScript - Variables: Undefined What happens if you create a variable, but don't assign it a value? JavaScript creates space for this variable in memory and sets it to undefined. Undefined is the fifth and final primitive data type. JavaScript assigns the undefined data type to variables that are not assigned a value. [...]