Published in Level Up Coding·May 6JavaScript Basics: StringsStrings in JavaScript — In JavaScript, a string is used to represent text. To write a string in JavaScript, you enclose your string in the following quotation marks: 'The ocean is brown.' "The ocean is brown." `The ocean is brown.` You can use either one of the quotation marks as long as the first…Java Script2 min read
Published in The Case of Curious Birds·May 2I Wish I Was an AnimalMeet five people that want to be animals — Meet Anna, she wants to be a snake. Ever since she was a little girl, she always wanted a snake. After getting her first pet snake, she would sit inside the snake cage and sleep with the snake. The snake didn’t take what she did kindly. Ten pet snakes later…People5 min read
Published in JavaScript in Plain English·May 2JavaScript Basics: NumbersNumbers in JavaScript — In JavaScript, a number is a data type. It holds, well, numbers. JavaScript uses 64 bits to store a number. The size of a number that can be represented is limited. With 64 binary digits, you can store really large values. We’re talking numbers in the quintillions. But once you…Java Script3 min read
Published in The Case of Curious Birds·Apr 27The Sheep That Wore a Sweater Made Out Of Human HairA tale about a sheep farmer and his accidental side business — Once upon a time there was a sheep named Bart that was into high fashion. Everything he wore made all the male sheep jealous of him. His glittery sunglasses and oversized bow tie made him a favorite for the ladies. There was one thing about him that stood out. It…Animals5 min read
Published in JavaScript in Plain English·Apr 26JavaScript Algorithm: Creating a Multiplication ChartHow to create a simple multiplication chart in JavaScript — We are going to write a function called multiplication() that will accept an integer, num, as an argument. The goal of the function is to output multiplication tables from 1 to num (your input). Within each table, the function will print out multiples of a each number up to ten…Java Script3 min read
Published in The Case of Curious Birds·Apr 11I Am Your Useless Cereal Bowl-Shaped PlungerA tale about an underperforming plunger — I am Ted and I am your useless cereal bowl shaped plunger. I don’t have many features other than poorly unclogging your toilet. By bowl shaped head doesn’t bend or fit along the contours of your toilet bowl. I create no suction. The only thing I do right is splash…Humor2 min read
Published in The Case of Curious Birds·Feb 28Nancy and Her Three CatsA tale about a woman and her over-controlling cats — Once upon a time, there was a woman named Nancy that owned three cats. The cats were so kind and obedient. As long as Nancy did what the cats asked for, they remained that way. The moment Nancy stopped listening to the cats, they would throw a hissy fit. They…Humor8 min read
Published in JavaScript in Plain English·Jan 14JavaScript Algorithm to Check for a Perfect Square NumberChecking if a number is a perfect square — We are going to write a function called isSquare that will accept an integer, n, as an argument. In this function, you will check if a number is a perfect square. A perfect square is an integer that is the square of an integer. In other words, if you were…Algorithms2 min read
Jan 11I Went to Bed Every Day for 30 Days and This Is What HappenedI became less tired… — I was tired every day and I wanted a solution for my tiredness. People would often tell me how I look like sh*t. I would tell them how I stayed up for 86 hours in the last few days. I didn’t understand. Why was I tired. My sleep schedule was…Sleep3 min read
Published in Level Up Coding·Jan 10JavaScript Algorithm: Convert String to Camel CaseConvert dash and or underscore delimited words into camel casing — We are going to write a function called toCamelCase() that will accept a string, str, as an argument. For this function, you are given a string and the words in the string are separated by either a dash — or an underscore _ or both. The goal of the function…Java Script3 min read