Skip to content

Instantly share code, notes, and snippets.

@asherginting
Created September 19, 2022 13:32
Show Gist options
  • Save asherginting/21fae9396f13222533fc3b67e06a3195 to your computer and use it in GitHub Desktop.
Save asherginting/21fae9396f13222533fc3b67e06a3195 to your computer and use it in GitHub Desktop.
variabel-and-typedata
/**
* TODO:
* Buatlah variabel firstName, lastName, age, isMarried dengan ketentuan:
* - firstName: bertipe data string, dengan nilai nama depan Anda.
* - lastName: bertipe data string, dengan nilai nama belakang Anda.
* - age: bertipe data number, dengan nilai umur Anda.
* - isMarried: bertipe data boolean, dengan bebas Anda tentukan.
*/
// TODO
let firstName = "Asher";
console.log(typeof(firstName));
let lastName = "Ginting";
console.log(typeof(lastName));
let age = 22;
console.log(typeof(age));
let isMarried = false;
console.log(typeof(isMarried));
/**
* Jangan hapus kode di bawah ini
*/
module.exports = {
firstName, lastName, age, isMarried,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment