loading
open in
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var letter = 'a';
var vowel = "E";
var number = 1; 
var dict = {};
var arr = [];
var bool = true;
var testing = function() { 
    return "testing"; 
};

// Leverage object methods thanks to constructor objects
console.log(letter.toUpperCase());
console.log(vowel.toLowerCase());
console.log(number.toExponential());

dict.language = "JavaScript";
console.log(dict);
console.log(dict.language);
console.log(Object.keys(dict));

arr.push("Python");
console.log(arr);
console.log(bool);
console.log(testing());
Native Browser JavaScript