Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

mmvergara
mmvergara

Posted on • Edited on

     

Javascript Tagalog - Math.max

Ano ngaba ang Math.min sa Javascript?
Math Function siya na i re-return yung pinakamataas value sa mga binigay na parameters/arguments (also i ta-try ni js na i convert ang mga binigay na value as a number if hindi number yung binigay)

console.log(Math.max(-1,0,1))// -1console.log(Math.max('3',4,5))// 5constx=[1,2,3]consty=newSet([0,1,2,3,4])// Using spread operator para mapass mga values as parametersconsole.log(Math.max(...y))// 4console.log(Math.max(...x))// 3
Enter fullscreen modeExit fullscreen mode

NaN kapag nag tinry mo mag pass ng hindi number or any na hindi pwede maconvert as a number

console.log(Math.max({}))// NaN
Enter fullscreen modeExit fullscreen mode

More tagalog Javascript Learning Resources:
https://javascript-methods-in-tagalog.vercel.app/

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Creator of Supadart 🎯 | Fresh Grad
  • Location
    Philippines
  • Joined

More frommmvergara

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp