0
JavaScript concept of "toggle" while doing nav Bar
I want to understand how to use js in oder to make my nav-menu responsive and interactive on mobile
2 Antworten
+ 1
toggle is basically just if else condition checking...
pseudocode:
using ternary expression:
function toggle(){
el.property = el.property==this ? that : this
}
or using if-else:
function toggle(){
if (el.property == this)
el.property = that
else
el.property = this
}
0
Ermias Kebede
May these help you:-
https://www.sololearn.com/discuss/2217809/?ref=app
https://www.sololearn.com/discuss/3023388/?ref=app
https://www.sololearn.com/discuss/3173688/?ref=app
https://www.sololearn.com/discuss/2260362/?ref=app
https://www.sololearn.com/discuss/587826/?ref=app
https://www.sololearn.com/discuss/2286942/?ref=app
https://www.sololearn.com/discuss/3250158/?ref=app
https://www.sololearn.com/discuss/3106640/?ref=app