Javascript 타갈로그어 - Math.max

Disclaimer: This is a Blog i made with the initial intention of reinforcing my knowledge in JS. I just thought sharing my blogs might be helpful for someone since they are written in tagalog/taglish. Incase of Misinformation I won't be responsible for it and you can comment on the blog to address the mistake or email me. I'm always trying my best to be as accurate as possible. take a look at other resources just to be sure.
Javascript에 Math.min이 있습니까?
Math Function siya na i re-return yung pinakamataas value sa mga binigay na parameters/arguments (또한 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) ) // -1
console.log( Math.max('3',4,5) ) // 5

const x = [1, 2, 3]
const y = new Set([0,1, 2, 3, 4])

// Using spread operator para mapass mga values as parameters
console.log( Math.max(...y) ) // 4
console.log( Math.max(...x) ) // 3



NaN kapag nag tinry mo mag pass ng 힌디어 숫자 또는 어떤 na hindi pwede maconvert as a number

console.log( Math.max({}) ) // NaN


baka 지나치게 단순화되고 부정확한 정보 nasulat ko 그래서 여기에 더 자세한 문서가 있습니다(영어).
MDN Documentation - Math.min

더 많은 타갈로그어 Javascript 학습 리소스:
https://javascript-in-tagalog.netlify.app

좋은 웹페이지 즐겨찾기