Skip to content

Instantly share code, notes, and snippets.

View northam's full-sized avatar

Eugene Kardash northam

View GitHub Profile
Designers Track
@northam
northam / Markdown-cheatsheet.md
Last active August 1, 2019 00:19
Gist Markdown Cheatsheet

Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

@northam
northam / JavaScript-practice.md
Created August 1, 2019 00:18
Some extra JavaScript practice

Important note

Use Replit or write code in a local JS file to complete these challenges. JS Bin doesn't handle callbacks well (it throws SyntaxError: Unexpected token { even though the code works elsewhere), and Code Pen has a finnicky console: https://repl.it/languages/nodejs

For a version of these questions with hints, use this gist: https://gist.github.com/SnoopSqueak/26824b4bde4071f967100ae3f9628798

Conditionals and operators

  1. Write a function getIsWordOdd that takes in a string and returns true if the word contains an odd number of characters or false if the word contains an even number of characters.

Sample calls: