Created
September 13, 2025 15:40
-
-
Save davidystephenson/ebf6cd8a04a1002f27a96fb4df27ebcb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
var message = 'hello' | |
var guestList = ['Zelda', 'Dorothy', 'Tallulah', 1, true, { x: 1 }, ['a', 1, false]] | |
var zeldaDetails = { | |
first: 'Zelda', | |
'last': 'Fitzgerald', | |
occupation: 'Writer' | |
} | |
var n = 9001 | |
console.log(n) | |
var s = String(n) | |
console.log(s) | |
var a = s.split('') | |
console.log(a) | |
var reversed = a.reverse() | |
console.log(reversed) | |
console.log(reversed.length) | |
var reversedString = reversed.join('') | |
console.log(reversedString) | |
const x = 5 | |
const y = 9001 | |
const remainder = y % x | |
console.log(remainder) | |
var a = undefined // the thing you wanted is missing | |
var b = null // I want this thing to have no value | |
var initial = false | |
console.log(initial) | |
var later = !initial | |
console.log(later) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment