Skip to content

Instantly share code, notes, and snippets.

View Belouccio's full-sized avatar
💭
just chillin, killin

George Belouccio

💭
just chillin, killin
View GitHub Profile
function myFunc(str){
var shablon="a(){}[]";
var stek=[];
for (var i=0; i<str.length; i++){
var x=str[i];
var y=shablon.indexOf(x);
if (y>0){
if(y%2==0){
if(!stek.length){
return console.log("не правильно");