Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2 KB

File metadata and controls

58 lines (38 loc) · 2 KB

JavaScript Basics

Answer following questions in this file.

What is JavaScript?

JavaScript is a programation language to interpretation to create a interactive effects within browsers in a HTML or others, this language, JavaScript implement a functions for aplications web, JavaScript inherit directly from others objects via prorotype, JS supports procedural, object-oriented, and functional programming.

About values

What is a primitive value?

Primitive variable is a basic data type that is not an object and has no methods, variable are immutable, meaning they cannot be changed, inside the variable are numbers, strings, booleans and others, 

Which are primitive values? Explain them with at least one example for primitive.

Primitve values are the previously mentioned in a secod answer, are numbers, strings, booleans, null, undefined, true/false, symbol and BigInt.

About variables

What is a variable in JS?

A variable in JavaScript is a named storage for data. It allows you to store, retrieve, and manipulate values in your code.

How many ways can we define a variable in JS? Is there any not recommended way?

Variable in JS are LET the most generic, VAR in disuse because is the previously version from JS and const is a type of variable what it value not change. 
Previusly i defined the diferents variables, the not recommended way is a VAR becasue is in disused.

Which are the most used var naming conventions in JS?

Naming conventions more important are camelCase, snacke_case and PascalCase.

About operators

Which are the main comparison operators in JS? Explain them with at least one example for primitive.

Operator comaprison are, same ==, not same !=, <> major o minor than, === strict equiality, !== strict not equal, >= greater tha or equal to.., <= less than or equal to...

Which are the main logical operators in JS? Explain them with at least one example for primitive.

And &&, Or ||, not !,