Section 14

AWESOMee·2022년 4월 7일
0
post-thumbnail

Udemy Web Developer Bootcamp Section 14

JavaScript

죽여주는 JS,,,,

Primitives & The Console

The first fundamental thing we have to know are the primitive types in JavaScript.
So primitive types are just types in general are a concept across ant programming language.

Primitive Types : The Basic Building Blocks

  • Number
  • String
  • Boolean
  • Null
  • Undefined

The most fundamental unit that we interact with on a daily basis or even like a minute basis.

The console is a place where I can just quickly and interactively play around with code. It's a great place to demonstrate things and just to learn the basics.

Numbers in JavaScript

  • JS has one number typr
  • Positive numbers
  • Negatives numbers
  • Whole numbers (integers)
  • Decimal numbers

NaN : Not a Number

NaN is technically considered a number in JS.

Variables

Variables are like labels for values.

Basic Syntax

let someName = value;

Recall Values

Const & Var

  • Const
    Const stands for Constant. Constant is a value that does not change. It remains constant.

  • Var : The old way of making variables.

Boolean

True or False values.

In JS, you can have a variable that changes type.

Variable Naming and Conventions

In JS, identifiers are case-sensitive and can contain Unicode letters, $, _, and digits(0-9), but may not start with a digit.

In JS, use camelCase where each new word has a uppercase first letter except for the very first letter of the variable.

Naming functions well is crucial. Avoid one letter variables unless for some reason it makes sense and feel confident in it.

profile
개발을 배우는 듯 하면서도

0개의 댓글