Built-in Objects in JavaScript 2022, Generate Random Number, Check if Number is Integer, Codecademy

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=RPrEbMNIx3w



Duration: 8:30
234 views
5


In this Introduction to JavaScript Codecademy lesson, Built-in Objects, we take a look at some bult-in objects and their useful functionality. We first learn that there is a Math object with many different methods we may use, and in this specific lesson, we learn about generating a random number using the Math.random() method. Using this will cause JS to generate a random number between 0 and 1. We are able to multiply this result by a number to generate a random number between 0 and the number multiplied. We then learn that we are able to round a number in Javascript using the .ceil() method which returns the smallest integer greater than or equal to a decimal number. After that we learn of a method on the Number object which allows us to check if a value is an integer or not. We learn this is possible through the JavaScript built-in Number object method, .isInteger() which allows us to pass in a value, and have it checked, as to whether or not it is an integer. This lesson begins to show us the different methods and objects that are available to us in the JavaScript language. Master and understand JavaScript built-in methods in 2022 and beyond to truly begin to master JavaScript and programming forever!




Other Videos By We Will Code


2022-02-16What is String Interpolation in JavaScript, String Interpolation Explained, Codecademy Coding 2022
2022-02-16String Concatenation Explained, 2022 Programming with JavaScript on Codecademy, String Concatenation
2022-02-16Increment and Decrement Operator 2022, Programming Basics in JavaScript, Codecademy JS Course Guide
2022-02-15Variables and Mathematical Assignment Operators in JavaScript, Codecademy's Intro JS, Variables 2022
2022-02-15JavaScript const Variable 2022 Programming for Beginners, Codecademy's Intro to JS Programming
2022-02-15Create a Variable, let Keyword 2022, let Variable JavaScript Keywords 2022, Master JavaScript
2022-02-15Codecademy JavaScript Course 2022, Create a Variable using var Keyword, Learning to Program 2022
2022-02-15An Introduction to JavaScript Variables 2022, What are JavaScript Variables, Codecademy JS Section
2022-02-15Codecademy's Introduction to JavaScript Review, End of Section 1
2022-02-13Get Second Star Rank in Pokemon Legends Arceus, Get Feather Balls and Super Potion Crafting Recipe
2022-02-13Built-in Objects in JavaScript 2022, Generate Random Number, Check if Number is Integer, Codecademy
2022-02-12Meeting Arezu from the Diamond Clan on Pokemon Legends Arceus, Nintendo Switch 2022 Newest Games
2022-02-12The Frenzy of the Lord of the Woods, Grandtree Arena, Defeating Lian and Irina, Defeat Noble Kleavor
2022-02-11A Request from Mai, Battle Akari, Meet and Defeat Mai, Battle the Alpha Kricketune, Pokemon Legends
2022-02-11Getting to Work on Research Tasks, Pokemon Legends Arceus, Obsidian Fieldlands, First Star Rank
2022-02-11Crafting in Pokemon Legends Arceus, The Basics of Crafting, The Pokedex in Pokemon Legends Arceus
2022-02-11Catching Bidoof, Starly, and Shinx, Focusing, Crouching and Taking Cues, Starting Pokemon Battle Tip
2022-02-11The Galaxy Team's Entry Trial, Choose First Pokemon and Trainer Battle, Obsidian Fieldlands, Arceus
2022-02-11First Pokemon Trainer Battle in Pokemon Legends Arceus, Meeting Ginkgo Guild Member Volo, Trainer
2022-02-11Understanding Javascript Methods 2022, JavaScript String Methods, to uppercase and Remove Whitespace
2022-02-11In an Unfamiliar Land, Meet Akari and Cyllene, Checking Survey Tips, How to Save in Pokemon Arceus



Tags:
Coding
JS
JavaScript
Programming
Tutorials