Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

4.1. Values and Data Types¶

console.log(typeof "Hello, World!");
console.log(typeof 17);
console.log(typeof 3.14);

//string
//number
//number

/*If you are not sure what data type a value falls into, precede 
the value with typeof./*
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Values #Data
ADD COMMENT
Topic
Name
8+9 =