목록F2. Problem & Solving (33)
Silver Library (Archived)
Why I use this? - To group up (or wrap up) a number of string characters to print out a singularly indicated result. Personal note: So this switch belongs to prototype. Hint: The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case, as well as statements in cases that follow the matching case. Bit more: A sw..
My initial sight: Looks like readline() is called module, and this can be used as a tool to read the data from *readable streams. Note: *Readable streams are an abstraction for a source from which data is consumed. (e.g. process.stdin) Why I searched for this module? To understand the purpose of using this module from JS problem & solving question. To access some data by using readline, const re..
output : true 1. This is an instance to use as a checker from the existing data. In this case, includes() method belongs to var str. As 'Geeks' string characters does exist on that var str, the outcome regarding this variable will output : true. Further info: Syntax:string.includes(searchvalue, start) Parameters Used: search value: It is the string in which the search will take place. start: Thi..
https://www.hackerrank.com/challenges/js10-loops/problem Personal note: the code makes sense but how on earth I can remember such a method on that day...? whatever the condition is; I need to keep rolling this. 'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin; })..