Skip to content

Instantly share code, notes, and snippets.

@ndthanh

ndthanh/GAS01.js

Created May 5, 2019
Embed
What would you like to do?
function myFunction() {
var x = 'Hello'; // Kiểu string
var z = 23; // Kiểu số, kiểu Number
var y = true; // Kiểu boolean
var array = ['Hello', 'World', 23, 4, false];
array[0] // 'Hello'
var obj = { 'firstName': 'Thanh', 'lastName': 'Nguyen' }
Logger.log(array[0]);
Logger.log('Tên của tôi là ' + obj.firstName);
obj.firstName;
obj['firstName'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.