UNPKG
ham-tools-package
Version:
latest (1.0.6)
1.0.6
1.0.4
1.0.3
1.0.2
1.0.0
Learning to create an npm package
ham-tools-package
/
index.js
6 lines
(5 loc)
•
170 B
JavaScript
View Raw
1
2
3
4
5
6
exports.whatBand = freq => {
if
((freq >
30
) && (freq <=
300
)) {
return
'VHF'
}
else
if
((freq >
300
) && (freq <=
3000
)) {
return
'UHF'
}
else
{
return
'Dunno'
} }