Math Functions |JavaScript Course | Logic First Tamil

Опубликовано: 03 Март 2026
на канале: Logic First Tamil
31,424
317

Javascript course with indepth explanations in tamil.

Github CodeLink - https://github.com/LogicFirstTamil
Notion link for code - https://balanced-quince-db1.notion.si...

//try in console
//rounding
Math.round(5.8) //result 6
Math.round(5.1) //result 5
//floor gives prev number
Math.round(5.8) //result 5
//ceil gives next number
Math.ceil(5.8) //result 6
Math.ceil(5.1) //result 6
//returns square root of the number
Math.sqrt(55) //result 7.416....
//absolute value returns positive value of the number
Math.abs(-9) //result 9
//power - Math.pow(base,exponent)
Math.pow(8,5)
32768
//min value from a set of values
Math.min(8,5,7,8) //result 5

//random - returns a value between 0 and 1
Math.random()
//dice roll - random number between 1 and 6
Math.floor(Math.random()*6)) + 1
//random number between 1 and 100
Math.floor(Math.random()*100)) + 1

//constants
Math.PI
Math.E

----------------------------------------------------------------------------------------------------------------
courses and playlists
Javascript Playlist:    • Javascript  
HTML and CSS:    • Html and CSS  
SQL:    • SQL  
DS and ALGO in C/CPP:    • Introduction to Data Structures | DSA in T...  
DS and ALGO in Java:    • Introduction to Data Structures | DSA in T...  
Python Full Course with game:    • Learn Python in Tamil | Python Complete Co...  
Java Playlist:    • Learn Java in Tamil  
Java one video:    • Java Full Course in Tamil (2023) | Basics ...  
C Interview program playlist:    • C Interview Programs in Tamil  
C programming in one video:    • C Programming in Tamil | Complete C Progra...  
C programming playlist:    • Introduction to C programming in Tamil (தம...  
C++ Playlist link:    • C++ Programming in Tamil  

English channel link:    / @logicfirst31