Contrary to popular belief, editing documents online can be trouble-free. Sure, some file formats might seem too challenging with which to work. But if you get the right solution, like DocHub, it's easy to tweak any document with minimum effort. DocHub is your go-to solution for tasks as simple as the option to Mix Object For Free a single document or something as daunting as handling a massive stack of complex paperwork.
When it comes to a solution for online file editing, there are many solutions available. Yet, not all of them are powerful enough to accommodate the needs of individuals requiring minimum editing functionality or small businesses that look for more extensive set of tools that enable them to collaborate within their document-based workflow. DocHub is a multi-purpose solution that makes managing paperwork online more streamlined and smoother. Try DocHub now!
hello friends welcome back today we are going to be using objects for lookups objects can be thought of as key value storage at like a dictionary if you have a tabular data you can if you have tabular data you can use an object to lookup values rather than a switch statement or an if-else chain this is most useful when you know that your input data is limited to a certain range heres an example of a simple reverse alphabet lookup so theyve got alpha is equal to the object of 1 2 3 4 5 so its numerical and it goes up and so the alphabets reversed so Zs first is go IX so alpha at 2 is y because alpha at 0.2 is y alpha at 24 is C meaning its the you know third from the last so were setting a variable of a value its equal to 2 and so here what were doing is were passing in a variable into an object an object here so we want to convert the switch statement into an object called lookup heres the switch statement and we want to convert that only change the code below this line only