Created
September 19, 2022 13:32
-
-
Save asherginting/21fae9396f13222533fc3b67e06a3195 to your computer and use it in GitHub Desktop.
variabel-and-typedata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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